<html>
<body>
<div id="div1"> div</div>
</body>
<script>
window.id = "window";
document.getElementById( "div1" ).onclick = function(){
alert ( this.id ); // :"div1"
var callback = function(){
alert ( this.id ); // :"window"
}
callback();
};
</script>
</html>
Why does the this of the callback function point to window,? isn"t it called in div-sharpdiv1? Very confused