Dirty Forms
Component type
Categories
Maintenance status
Development status
Downloads
Component created
Component changed
The Dirty Forms module provides a javascript behavior that checks forms before users leave the page, warning them if they are about to loose changes and providing an option to remain on the page.
The module provides a configuration form that allows setting up a list of forms that should be excluded from the dirtyForms behavior.
This feature is based on the onBeforeUnload event of the window object which, at the time of writing, is only supported by IE4+, Mozilla Firefox, Google Chrome. Those using other browsers (or when javascript is not enabled) won't be warned when leaving dirty pages. Ah, c'est la vie!
The Dirty Forms module requires the onBeforeUnload API.