File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes parent-child window relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parent-child window relationship" Watch "parent-child window relationship" New topic

parent-child window relationship

jyothsna kumari
Ranch Hand

Joined: Jul 21, 2003
Posts: 108
Hi All,

The problem is....
I have a parent window from which i open a child window.This child window has got a name.So i am able to close the child window when the parent window gets closed.
Now my problem is when i traverse to second window from parent window after opening a child window and here if i try to close the parent window i am not able to close the child window by accessing it through its name as the relation is lost.

Can anybody suggest me any way by which i can close my child window when parent window is closed.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Some people will put a function on the child window that checks to make sure that the parent is still there and set it on an interval.

I agree. Here's the link:
subject: parent-child window relationship
It's not a secret anymore!