This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to get List of Child Windows in Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to get List of Child Windows in Javascript" Watch "How to get List of Child Windows in Javascript" New topic
Author

How to get List of Child Windows in Javascript

Ravi Majety
Ranch Hand

Joined: Feb 26, 2009
Posts: 59

Hi,

Is there any way to access the list of child windows opened in the javascript. So at time of logout , i can close all child windows.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60739
    
  65

Please take the time to choose an appropriate forum for your posts. This forum is for questions on JSP. For more information, please click this link ⇒ CarefullyChooseOneForum.

This post has been moved to a more appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You would need to know the names of all of the windows that are created or you have to store a reference to them in an array [this only works if page is not refreshed, closed, etc].

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get List of Child Windows in Javascript
 
Similar Threads
No javascript for child windows.
Spring : Two actions possible leading to 2 views ?
No javascript for child windows.
No javascript for child windows.
javascript using passing list box values from the popup windows