closing instance of popup window

admin

Administrator
Staff member
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.<!--content-->in your popup open code put:<br />
var mypopup = "null";<br />
<br />
if(mypopup!="null" && !mypopup.closed) mypopup.close();<br />
mypopup = window.open(your stuff here);<br />
<br />
jason<!--content-->
 
Back
Top