469,276 Members | 1,692 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,276 developers. It's quick & easy.

How to close pop up window when main window closed?(pop up is in more than 2 p.w)

Hi,
I want close sub windows when i log out from main window or close the main window.

I need to write the code in pop up window.

That pop up has been in ore than 2 parent windows.
how to write script code for this one.
Apr 4 '07 #1
1 1244
acoder
16,027 Expert Mod 8TB
If you write the code in the popup window, you will need to periodically check using setInterval that the parent window still exists. If it doesn't, close the popup window.

If this code were in the parent window, all you'd need to do is close the popup window if it was still open onunload.
Feb 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Christopher Benson-Manica | last post: by
18 posts views Thread by Roger Withnell | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.