HTML5 JS API Index > Browser Tutorials & Specs
There are no BeforeUnloadEvent-specific initialization methods.
- The returnValue attribute
represents the message to show the user. When the event is created, the attribute must be set to
the empty string. On getting, it must return the last value it was set to. On setting, the
attribute must be set to the new value.