Jen Song
11-06-2003, 10:14 AM
Hi,
I have the following javascript and HTML:
.............
<head>
<SCRIPT TYPE="text/javascript">
<!--
myPopup = '';
function popup(mylink, windowname) {
myPopup = window.open(mylink, windowname, 'width=520, height=290, left=450, top=350, scrollbars=yes');
if (!myPopup.opener)
myPopup.opener = self;
}
//-->
</SCRIPT>
</head>
<body bgcolor ="#c0c0c0" onUnload="myPopup.close()">
..................
Everytime when user leaves this pages (onUnload), there is a popup box showing this:
A Runtime Error has occcured
Do you wish to Debug?
Line: 48
Error: Object doesn't support this property or method
The error points to "myPopup.close()".
The weird thing is it happens only on my boss' browser. Mine doesn't give me any error. I wish it could be the other way around :(
Does anybody know what this error is? Thanks a lot!!
I have the following javascript and HTML:
.............
<head>
<SCRIPT TYPE="text/javascript">
<!--
myPopup = '';
function popup(mylink, windowname) {
myPopup = window.open(mylink, windowname, 'width=520, height=290, left=450, top=350, scrollbars=yes');
if (!myPopup.opener)
myPopup.opener = self;
}
//-->
</SCRIPT>
</head>
<body bgcolor ="#c0c0c0" onUnload="myPopup.close()">
..................
Everytime when user leaves this pages (onUnload), there is a popup box showing this:
A Runtime Error has occcured
Do you wish to Debug?
Line: 48
Error: Object doesn't support this property or method
The error points to "myPopup.close()".
The weird thing is it happens only on my boss' browser. Mine doesn't give me any error. I wish it could be the other way around :(
Does anybody know what this error is? Thanks a lot!!