aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Closing child windows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Closing child windows" Watch "Closing child windows" New topic
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
    
    6
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
    
  13

Also
if any one knows it then pl reply to this id dilip.g@goldstonetech.com

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]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Closing child windows
 
Similar Threads
Calling parent function when user closes child window
error in passing values from child window to parent window
Refreshing Parent Window from Child
Using ModalDialogs instead of Window.open for popups
How to close all child windows from parent window