This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Window Closing event  RSS feed

 
Rajesh Tarigopula
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try this...

Javascript Q-A
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!