• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to detect the browser closing event ?

 
seema mani
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi I need to perform certain actions when the applet's browser window closes. Is there any way by which I can detect this event ?
I tried adding the code to the stop() and destroy() methods of the applet, but it is not working. Please advise.
Thanks
Seema
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use java script to detect window close event
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic