Also in: Deprecated > Deprecated 1.8 .unload() Bind an event handler to the “unload” JavaScript event.