[thelist] IE5 Mac onUnload JavaScript bug?

Edd Partee edd at vilocity.com
Fri May 11 13:24:29 CDT 2001


Smart People:
I'm having trouble getting an onUnload event to fire in IE5 Mac. It
works on all other browsers tested (4.0+ versions). I've also tried the
IE specific onBeforeUnload with similar disappointing consequences. I
know other people have experienced this problem (I did my Google
homework ;)). A little help would be greatly appreciated. See code
below:

-Edd

code snips --

I'm trying to both set the value of a form field (myform.myval) and
submit the form when
the page is unloaded.

...
<head>
...
<script language="JavaScript">
function sendMe(thatvar) {
document.myform.myval.value = thatvar;
document.myform.submit();
}
</script>
</head>

<body ... onUnload="sendMe('variable_X')">
...




More information about the thelist mailing list