permaculture playing cards*
The moose likes Applets and the fly likes How to detect the browser closing event ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to detect the browser closing event ?" Watch "How to detect the browser closing event ?" New topic
Author

How to detect the browser closing event ?

seema mani
Ranch Hand

Joined: Sep 30, 2001
Posts: 49
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


Sun Certified Java Programmer<br />Sun Certified Web Component Developer<br />Sun Certified Business Component Developer
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
You can use java script to detect window close event


Sarath Mohan
 
 
subject: How to detect the browser closing event ?
 
Similar Threads
Stopping a backend process if user closes the browser window
Invalidate session when browser is closed
Is it possible to save the data of the applet when focus is lost from it
how to detect Browser close
how to access browser refresh button