Forum Moderators: open
However, although it works fine in Netscape v7, I find that it works erratically in IE6. It always shuts down the parent window, but often opens up multiple copies of the pop-up window. At least it does, when used in conjunction with my standard openpopup function.
If you can find the answer, I would be interested to hear from you. Note: index.htm is the name of the parent window.
[In child window]
if (!opener.closed && opener.location){
opener.location.href="index.htm";
opener.opener = top
opener.parent.window.close();
}
[In parent window]
function openpopup(){
var popurl="mainmenu.htm"
winpops=window.open(popurl,"","toolbar=no,location=no,directories=no,status=no,*
menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=748,height=400")
}
* line break added to prevent side scroll
[edited by: tedster at 10:38 am (utc) on Aug. 24, 2003]