Skip to content

Commit 0c57bf7

Browse files
Connor CartwrightAurelioDeRosa
Connor Cartwright
authored andcommitted
beforeunload event: Updated wording
Fixes gh-364 Closes gh-925
1 parent 3aa3761 commit 0c57bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/unload.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<p>This method is a shortcut for <code>.on( "unload", handler )</code>.</p>
2424
<p>The <code>unload</code> event is sent to the <code>window</code> element when the user navigates away from the page. This could mean one of many things. The user could have clicked on a link to leave the page, or typed in a new URL in the address bar. The forward and back buttons will trigger the event. Closing the browser window will cause the event to be triggered. Even a page reload will first create an <code>unload</code> event.</p>
2525
<div class="warning">
26-
<p>The exact handling of the <code>unload</code> event has varied from version to version of browsers. For example, some versions of Firefox trigger the event when a link is followed, but not when the window is closed. In practical usage, behavior should be tested on all supported browsers, and contrasted with the proprietary <code>beforeunload</code> event.</p>
26+
<p>The exact handling of the <code>unload</code> event has varied from version to version of browsers. For example, some versions of Firefox trigger the event when a link is followed, but not when the window is closed. In practical usage, behavior should be tested on all supported browsers and contrasted with the similar <code>beforeunload</code> event.</p>
2727
</div>
2828
<p>Any <code>unload</code> event handler should be bound to the <code>window</code> object:</p>
2929
<pre><code>

0 commit comments

Comments
 (0)