confirmexit
Component type
Categories
Maintenance status
Development status
Component created
Component changed
git clone --branch 6.x-1.0 lalit774@git.drupal.org:sandbox/lalit774/1969340.git confirmexit
If you are attempting to verify the user wants to leave the page prior to saving.
A window can be opened on exit of the browserpage (onunload) this will not prevent them from losing data on the page as the page would still be closed.
The better option would be to present the user with an 'Alert' message prior to unload (onbeforeunload).
