window.onfocus and window.onblur not working in IE8
- by AshokD
Both the events are getting fired at the time onblur event.
<script src="js/jquery-1.7.2.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
window.onfocus = function() {
$('#msg').html($('#msg').html() + '<br/> focus');
};
window.onblur = function() {
$('#msg').html($('#msg').html() + '<br/> Blur');
};
</script>
<div id="msg">
</div>