This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Window Closing event" Watch "Window Closing event" New topic

Window Closing event

Rajesh Tarigopula

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.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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.

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:
subject: Window Closing event
It's not a secret anymore!