We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 860f822 commit 3f0ff89Copy full SHA for 3f0ff89
entries/unload.xml
@@ -28,7 +28,7 @@
28
<p>Any <code>unload</code> event handler should be bound to the <code>window</code> object:</p>
29
<pre><code>
30
$( window ).unload(function() {
31
- alert( "Handler for .unload() called." );
+ return "Handler for .unload() called.";
32
});
33
</code></pre>
34
<p>After this code executes, the alert will be displayed whenever the browser leaves the current page.
@@ -39,7 +39,7 @@ It is not possible to cancel the <code>unload</code> event with <code>.preventDe
39
<desc>To display an alert when a page is unloaded:</desc>
40
<code><![CDATA[
41
42
- alert( "Bye now!" );
+ return "Bye now!";
43
44
]]></code>
45
</example>
0 commit comments