--- title: GlobalEventHandlers.onabort slug: Web/API/GlobalEventHandlers/onabort translation_of: Web/API/GlobalEventHandlers/onabort ---
Um manipulador de eventos que aborta eventos enviados para a janela. (Não disponível para o Firefox 2 ou 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.
window.onabort =funcRef
funcRef
: Reference to a functionwindow.onabort = function() { alert("Load aborted."); }
Especificação | Status | Comentário |
---|---|---|
{{SpecName('HTML WHATWG','webappapis.html#handler-onabort','onabort')}} | {{Spec2('HTML WHATWG')}} |