Log in

View Full Version : Close all child windows through parent window


zybernau
Mar 22, 2007, 10:46 AM
Hi, all

In javascript
I need to close all the child windows[popup windows] that I have opened through a parent window

Scenario:

here i will be having as many as child window opened and name given to the child window can not be tracked because each will be having a different name, and

i am using 70 to 80 popup windows [doing seperate operations] through out my page [parent window]

there can be any number of child windows opened , at the time of user triGgers the event from the parent window to close all the child window that i have opened so far [currently opened child windows]


:confused:


I NEED IT URGENT

THANKS IN ADVANCE

- RAJAMOHAN

jthomsonmain
Oct 16, 2008, 05:57 PM
To my knowledge, you cannot do this, at least not easily. There is more than likely some way to do it, but 70 pop ups would cause lag, and with most people's browser security, the function to close the windows would either not work, or would create another pop up asking the user permission to close the window. I would say that you should start brainstorming on how to get the task accomplished without the 70 pop ups.