Lightweight plugin to prevent losing data in unsaved forms. Zero dependencies.
-
Updated
Aug 3, 2022 - 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.
Alerts the user when leaving a page without saving the changes.
Prevent screen transition if any state changed.
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."