I was looking at this website and trying to understand how this XSS is possible, but I just can't figure it out. Here's the URL: http://www.domxss.com/domxss/01_Basics/05_jquery_html.html?681973661
<script src="../js/jquery-1.9.1.js"></script>
<script>
function setMessage(){
var t=location.hash.slice(1);
$("div[id="+t+"]").html("Message from the name "+window.name);
}
$(document).ready(setMessage);
</script>
<span>
<a href="#message" > Show Here</a>
<div id="message">Showing Message1</div>
</span>
<span>
<a href="#message1" > Show Here</a>
<div id="message1">Showing Message2</div>