alaios
08-08-2002, 09:33 PM
Why this does not work?
Hi I want to check if the window that had opened the small window is still opened.
So I write this code in the small window
<script language="JavaScript">
<!---
function check() {
if (window.opener.close) {
window.open("openercheck.htm","hi");
}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" >
<script language="JavaScript">
window.setInterval("check()",1000);
</script>
it works only in netscape 4.75 but is does not in ie 5!!
I am calling every second the check function . The check function checks if the main window is still opened . If it is not open is again .
Hi I want to check if the window that had opened the small window is still opened.
So I write this code in the small window
<script language="JavaScript">
<!---
function check() {
if (window.opener.close) {
window.open("openercheck.htm","hi");
}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" >
<script language="JavaScript">
window.setInterval("check()",1000);
</script>
it works only in netscape 4.75 but is does not in ie 5!!
I am calling every second the check function . The check function checks if the main window is still opened . If it is not open is again .