aspose 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


Win a copy of Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to detect the browser closing event ?