Skip to content

Commit df4240a

Browse files
committed
Fixes for PR
1 parent 3f0ff89 commit df4240a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

entries/unload.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ $( window ).unload(function() {
3131
return "Handler for .unload() called.";
3232
});
3333
</code></pre>
34-
<p>After this code executes, the alert will be displayed whenever the browser leaves the current page.
35-
It is not possible to cancel the <code>unload</code> event with <code>.preventDefault()</code>. This event is available so that scripts can perform cleanup when the user leaves the page.
34+
<p>This event is available so that scripts can perform cleanup when the user leaves the page. Most browsers will ignore calls to <code>alert()</code>, <code>confirm()</code> and <code>prompt()</code> inside the event handler. The string you return may be used in a confirmation dialog, but not all browsers support this. It is not possible to cancel the <code>unload</code> event with <code>.preventDefault()</code>.
3635
</p>
3736
</longdesc>
3837
<example>

0 commit comments

Comments
 (0)