Click to See Complete Forum and Search --> : closing instance of popup window


joer
10-07-2003, 11:54 AM
Hello, I have a frame page. There are 2 frames inside of it. If I click the checkbox in top frame a popup window will display with html contents. My problem is if i uncheck the checkbox and dont close the window, the window stays open and the same results open in bottom frame. Essentially i mwant to be able to close any instance of the popup window if the bottom frame is loaded with contwent, since the content in bottom frame is the same as the popup window content.

jbergthorson
10-10-2003, 02:58 PM
in your popup open code put:
var mypopup = "null";

if(mypopup!="null" && !mypopup.closed) mypopup.close();
mypopup = window.open(your stuff here);

jason