Skip to content

Commit 97c6513

Browse files
committed
Unload: update outdated example
1 parent 860f822 commit 97c6513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/unload.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ It is not possible to cancel the <code>unload</code> event with <code>.preventDe
3939
<desc>To display an alert when a page is unloaded:</desc>
4040
<code><![CDATA[
4141
$( window ).unload(function() {
42-
alert( "Bye now!" );
42+
return "Bye now!";
4343
});
4444
]]></code>
4545
</example>

0 commit comments

Comments
 (0)