| Author |
Closing child windows
|
Karthik Guru
Ranch Hand
Joined: Mar 06, 2001
Posts: 1209
|
|
hi all, There are pop ups associated with the parent window and when i press "logout" i need to close the pop ups. I know that storing the refernce to the pop-ups can solve the problem. win = window.open(""); win.close(); w'd work. But is there a way to get the references to the child windows w/o explicitly storing their refernces in some variable? from the parent window? Please suggest a solution. thanks, karthik.
|
 |
Karthik Guru
Ranch Hand
Joined: Mar 06, 2001
Posts: 1209
|
|
okay am storing it in a array and while closing the main form i get the child window references from the array and close it explicitly. anything better? thanks karthik.
|
 |
Dilip Kumar
Greenhorn
Joined: Feb 12, 2003
Posts: 11
|
|
Hi all, if my child window contains some more child windows, then how can i close those sub child windows if any one knows it then pl reply to this id dilip.g@goldstonetech.com Thanks inadvance dilip
|
Dilip Kumar
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Why didn't you just start a new topic since this one is from 2001 plus your name does not fit with JavaRanch Guidelines.... You are going to have to close the children of the child. You can do that with an onunload when the parent closes the child.... Eric
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56215
|
|
Also
Please do not. By replying in email rather than to this forum, no one else will benefit from the answer. thanks, bear
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Closing child windows
|
|
|