Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Inherits properties from its parent,
No specific method; inherits methods from its parent,
HTMLElement events are inherited.
onXYZ event handler properties are also available as aliases targeting the
window object. However, it is advised to listen to them on the
window object directly rather than on
HTMLFrameSetElement will not work for the
onXYZ event handlers listed below. Listen to the events on the
window object instead.
Fired after the associated document has started printing or the print preview has been closed.
Fired when the associated document is about to be printed or previewed for printing.
Fired when the window, the document and its resources are about to be unloaded.
Fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used.
Fired when the browser detects that a gamepad has been disconnected.
Fired when the fragment identifier of the URL has changed (the part of the URL beginning with and following the
Fired when the user's preferred language changes.
Fired when the window receives a message, for example from a call to
Window.postMessage()from another browsing context.
Fired when the window receives a message that can't be deserialized.
Fired when the browser has lost access to the network and the value of
Fired when the browser has gained access to the network and the value of
Fired when the browser hides the current page in the process of presenting a different page from the session's history.
Fired when the browser displays the window's document due to navigation.
Fired when the active history entry changes while the user navigates the session history.
Promiseis rejected and the rejection has been handled.
Fired when a storage area (
localStorage) has been modified in the context of another document.
Fired whenever a
Promiseis rejected but the rejection was not handled.
Fired when the document is being unloaded.
BCD tables only load in the browser