WindowEventHandlers

WindowEventHandlers describes the event handlers common to several interfaces like Window, or HTMLBodyElement (en-US) and HTMLFrameSetElement (en-US). Each of these interfaces can implement more event handlers.

WindowEventHandlers is a not an interface and no object of this type can be created.

Properties

The events properties, of the form onXYZ, are defined on the WindowEventHandlers, and implemented by Window, and WorkerGlobalScope (en-US) for Web Workers.

WindowEventHandlers.onafterprint (en-US)

Is an event handler representing the code to be called when the afterprint (en-US) event is raised.

WindowEventHandlers.onbeforeprint (en-US)

Is an event handler representing the code to be called when the beforeprint (en-US) event is raised.

WindowEventHandlers.onbeforeunload

Is an event handler representing the code to be called when the beforeunload event is raised.

WindowEventHandlers.onhashchange

Is an event handler representing the code to be called when the hashchange event is raised.

WindowEventHandlers.onlanguagechange (en-US) Experimental

Is an event handler representing the code to be called when the languagechange (en-US) event is raised.

WindowEventHandlers.onmessage (en-US)

Is an event handler representing the code to be called when the message event is raised.

WindowEventHandlers.onoffline

Is an event handler representing the code to be called when the offline (en-US) event is raised.

WindowEventHandlers.ononline

Is an event handler representing the code to be called when the online (en-US) event is raised.

WindowEventHandlers.onpagehide

Is an event handler representing the code to be called when the pagehide (en-US) event is raised.

WindowEventHandlers.onpageshow

Is an event handler representing the code to be called when the pageshow (en-US) event is raised.

WindowEventHandlers.onpopstate

Is an event handler representing the code to be called when the popstate (en-US) event is raised.

WindowEventHandlers.onresize

Is an event handler representing the code to be called when the resize (en-US) event is raised.

WindowEventHandlers.onstorage (en-US)

Is an event handler representing the code to be called when the storage (en-US) event is raised.

WindowEventHandlers.onunload (en-US)

Is an event handler representing the code to be called when the unload (en-US) event is raised.

Methods

This interface defines no method.

Especificaciones

{{Specifications}}

Browser compatibility

No compatibility data found for api.WindowEventHandlers.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also