Lightweight plugin to prevent losing data in unsaved forms. Zero dependencies.
-
Updated
Aug 2, 2024 - JavaScript
Lightweight plugin to prevent losing data in unsaved forms. Zero dependencies.
Send data to a Google Form using sendBeacon() after the user is finished with the page.
Prevent page unloading from the user's action
Hide the Close button on tabs that have a BeforeUnload prompt pending.
Prevent screen transition if any state changed.
Alerts the user when leaving a page without saving the changes.
Add a description, image, and links to the beforeunload topic page so that developers can more easily learn about it.
To associate your repository with the beforeunload topic, visit your repo's landing page and select "manage topics."