J
jdlwright
Hi, well it appears (and please please correct me if I am wrong) that
since some IE patch (I am using 6.0.2800.1160 SP2) the browser no
longer calls the onunload handler when running outside of localhost
(but why??).
eg.
<html>
<script>
function mesg(){
alert("hello");
}
</script>
<body onunload="mesg()">
hello
</body>
</html>
if you put that on localhost, open it in IE and then close the browser
you should get the alert. However if you move it to some non localhost
server and repeat, there will be no alert.
This definately worked before (before some patch came along) - one
solution is to use onbeforeunload instead, but it is of course IE
only(?)
Anybody know why, or any different?
Thanks,
Jim
since some IE patch (I am using 6.0.2800.1160 SP2) the browser no
longer calls the onunload handler when running outside of localhost
(but why??).
eg.
<html>
<script>
function mesg(){
alert("hello");
}
</script>
<body onunload="mesg()">
hello
</body>
</html>
if you put that on localhost, open it in IE and then close the browser
you should get the alert. However if you move it to some non localhost
server and repeat, there will be no alert.
This definately worked before (before some patch came along) - one
solution is to use onbeforeunload instead, but it is of course IE
only(?)
Anybody know why, or any different?
Thanks,
Jim