[thelist] IE5 Mac onUnload JavaScript bug?
Erik Mattheis
gozz at gozz.com
Fri May 11 16:07:30 CDT 2001
That works in other browsers? Seems like the "bug" would be in the
browser that allowed a page to determine the next location of the
window!
But is interesting problem ... to accomplish what you want this seems
to work (in IE 5 Mac at least):
submitter = window.open('form.html','submitter','location=1');
self.focus();
function sendMe(thatvar) {
if (submitter && !submitter.closed) {
submitter.myform.myvalue.value = thatvar;
submitter.myform.submit();
}
}
<body onUnload="sendMe('variable_X')">
and in form.html:
<form ... name="myform" onSubmit="opener.focus();">
><head>
>...
><script language="JavaScript">
>function sendMe(thatvar) {
>document.myform.myval.value = thatvar;
>document.myform.submit();
>}
></script>
></head>
>
><body ... onUnload="sendMe('variable_X')">
--
- Erik Mattheis
"Everything's better"
http://gozz.com/
(612) 827 3963
More information about the thelist
mailing list