blob: 9882a8b82df13563cc14c6c7441b20eec0f594d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
---
title: GlobalEventHandlers.onabort
slug: Web/API/GlobalEventHandlers/onabort
translation_of: Web/API/GlobalEventHandlers/onabort
---
<div>{{ ApiRef("HTML DOM") }}</div>
<h2 id="Summary" name="Summary">Sumário</h2>
<p>Um manipulador de eventos que aborta eventos enviados para a janela. (Não disponível para o Firefox 2 ou Safari)</p>
<p>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 <code>img</code> tags.</p>
<h2 id="Syntax" name="Syntax">Sintaxe</h2>
<pre class="syntaxbox">window.onabort =<em>funcRef</em>
</pre>
<ul>
<li><code>funcRef</code>: Reference to a function</li>
</ul>
<h2 id="Example" name="Example">Exemplo</h2>
<pre class="brush:js">window.onabort = function() {
alert("Load aborted.");
}</pre>
<h2 id="Specification" name="Specification">Especificação</h2>
<table class="spectable standard-table">
<tbody>
<tr>
<th scope="col">Especificação</th>
<th scope="col">Status</th>
<th scope="col">Comentário</th>
</tr>
<tr>
<td>{{SpecName('HTML WHATWG','webappapis.html#handler-onabort','onabort')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td> </td>
</tr>
</tbody>
</table>
|