Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module implements the jQuery Dirty Forms library (http://mal.co.nz/code/jquery-dirty-forms/) which provides a more robust and flexible approach to alerting users when they attempt to leave a page with unsaved changes.
The main benefit of this module over other dirty form libraries is that this one allows you to define custom dialog boxes in newer browsers with a fallback to the browser's default dialog box on older browsers.
WARNING: This module does not correctly work with the most recent version of the jquery.dirtyforms library on GitHub when the Drupal Overlay module is enabled. I'm working on an update to resolve this issue.