Menu
Hi, guys
This’s my example code.
[CODE]
<HTML>
<BODY>
<script type=”text/javascript”>
window.onbeforeunload=function (){
document.getElementById(‘image’).innerHTML=”<img src=”img_url”>”;
}
</script>
<div id = “image”></div>
</BODY>
</HTML>
I want onbeforeunload event executed without alert box so I didn’t add ‘return false;’. But it works in Firefox only.
I have tried ‘window.setTimeout’ with onunload and AJAX but it still works in FF only.
Any Suggestion?
TYIA ?