GlobalEventHandlers.onabort

Summary

An event handler for abort events sent to the window. (Not available with Firefox 2 or Safari)

TODO define what "abort" is. Closing the window via window manager? Stopping the load of the page? By which means and reasons (user, network/server)? At which stages would it fire / be catched? For IE, onabort is only available with img tags.

Syntax

JavaScript
window.onabort =funcRef
  • funcRef: Reference to a function

Example

JavaScript
window.onabort = function() {
  alert("Load aborted.");
}

Specification

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'onabort' in that specification.
Living Standard  

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/globaleventhandlers/onabort

API NeedsContent NeedsHelp NeedsUpdate Property Reference Référence Window