File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes onunload and onbeforeunload Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "onunload and onbeforeunload" Watch "onunload and onbeforeunload" New topic
Author

onunload and onbeforeunload

Mark Butcher
Ranch Hand

Joined: Jun 28, 2012
Posts: 41
window.onload is recognised by the opera browser but onunload and onbeforeunload are not.
The javascript function is called on onload but not on onunload and onbeforeunload.

All other browsers are fine with this but except opera.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

Please post an SSCCE (Short Self-Contained Correct Example) demonstrating the issue.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onunload and onbeforeunload
 
Similar Threads
onUnload() -- Very URGENT !!!
Handle window close event
Invalidation HttpSession upon closing the browser
how to cancel the unload event in a jsp
'Cancel' on alert doesn't stop the action