Fork me on GitHub
Home
Simple
Unregister
Multiple
Custom

Unregister beforeunload example.

To see it in action, refresh the page.

The unregister functionality is also used on the menu in the top of this page, to unregister the handler on click, to avoid the hassle of confirming every time the visitor chooses to navigate to a new example.