my dog learned polymorphism
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
jQuery in Action, 3rd edition