Window API:
beforeunload
event Activation by setting
event.returnValue
to any truthy value
Deprecated
This feature is no longer recommended.