This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Window Closing event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Window Closing event" Watch "Window Closing event" New topic
Author

Window Closing event

Rajesh Tarigopula
Greenhorn

Joined: Oct 19, 2004
Posts: 8
Hi, I have to close a chaild window when the parent window is closed. How to track the window close event?

moreover when the user navigates to other links in the parent window, the chaild window should not close.

Please help me in this regard, thank in advance.

Thanks
Rajesh
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
when the parent window goes to a new page or refreshes, you will loose the JavaScript object that created the child window and probably will loose the communication to it.

Eric
Sam Smoot
Ranch Hand

Joined: Apr 18, 2002
Posts: 238
You might try this...

Javascript Q-A


CNSS/NSA Infosec Professional,<br />Software Engineer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Window Closing event