mwong7025
June 16th, 2005, 01:35 PM
I have web server program, I want to pass the onload and onunload event back to the to main page from the popup page. I am getting the error “window.opener is NULL or not an object” when I try to create the popup.
The following is how I create the popup:
A button is clicked on the main page, this send to my web server program to create the popup
My popup page is like the following:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body onload="window.opener.callToServer(4)" onUnload="window.opener.callToServer(5)">
<script type="text/javascript">
window.open('\ErrorLog.html', 'log','width=800,height=600,menubar,resizable,menubar=0')
</script>
</body>
</html>
The following is how I create the popup:
A button is clicked on the main page, this send to my web server program to create the popup
My popup page is like the following:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body onload="window.opener.callToServer(4)" onUnload="window.opener.callToServer(5)">
<script type="text/javascript">
window.open('\ErrorLog.html', 'log','width=800,height=600,menubar,resizable,menubar=0')
</script>
</body>
</html>