We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Перевод не завершен. Пожалуйста, помогите перевести эту статью с английского.

WindowEventHandlers describes the event handlers common to several interfaces like Window, or HTMLBodyElement and  HTMLFrameSetElement. 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 for Web Workers.

WindowEventHandlers.onafterprint
Is an EventHandler representing the code to be called when the afterprint event is raised.
WindowEventHandlers.onbeforeprint
Is an EventHandler representing the code to be called when the beforeprint event is raised.
WindowEventHandlers.onbeforeunload
Is an EventHandler representing the code to be called when the beforeunload event is raised.
WindowEventHandlers.onhashchange
Is an EventHandler representing the code to be called when the hashchange event is raised.
WindowEventHandlers.onlanguagechange
Is an EventHandler representing the code to be called when the languagechange event is raised.
WindowEventHandlers.onmessage
Is an EventHandler representing the code to be called when the message event is raised.
WindowEventHandlers.onoffline
Is an EventHandler representing the code to be called when the offline event is raised.
WindowEventHandlers.ononline
Is an EventHandler representing the code to be called when the online event is raised.
WindowEventHandlers.onpagehide
Is an EventHandler representing the code to be called when the pagehide event is raised.
WindowEventHandlers.onpageshow
Is an EventHandler representing the code to be called when the pageshow event is raised.
WindowEventHandlers.onpopstate
Is an EventHandler representing the code to be called when the popstate event is raised.
WindowEventHandlers.onresize
Is an EventHandler representing the code to be called when the resize event is raised.
WindowEventHandlers.onstorage
Is an EventHandler representing the code to be called when the storage event is raised.
WindowEventHandlers.onunload
Is an EventHandler representing the code to be called when the unload event is raised.

Methods

This interface defines no method.

Specifications

Specification Status Comment
HTML Living Standard
Определение 'GlobalEventHandlers' в этой спецификации.
Живой стандарт No change since the latest snapshot, HTML 5.1.
HTML 5.1
Определение 'GlobalEventHandlers' в этой спецификации.
Рекомендация Snapshot of HTML Living Standard. Added onlanguage since the Unknown snapshot.
HTML5
Определение 'GlobalEventHandlers' в этой спецификации.
Рекомендация Snapshot of HTML Living Standard. Creation of WindowEventHandlers (properties where on the target before it).

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support (Да) (Да) ? ? ?
onhashchange 3.6 (1.9.2) ? ? ? ?
onlanguage 32 (32) ? ? ? ?
onstorage Нет ? ? ? ?
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support (Да) ? ? ? ?
onhashchange 1.0 (1.9.2) ? ? ? ?
onlanguage 32.0 (32) ? ? ? ?
onstorage Нет ? ? ? ?

See also

Метки документа и участники

Внесли вклад в эту страницу: teoli
Обновлялась последний раз: teoli,