confirmexit

Categories

Component ID

1969340

Component name

confirmexit

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

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).

you can enable this functionality on content type base. This functionality available on only add and edit content.