File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to detect the browser closing event ?
 
Similar Threads
Stopping a backend process if user closes the browser window
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
Invalidate session when browser is closed