471,853 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

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

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 1282
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
reply views Thread by NeoPa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.