WindowEventHandlers
WindowEventHandlers
describes the event handlers common to several interfaces like Window
, or HTMLBodyElement
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
for Web Workers.
WindowEventHandlers.onafterprint
- Is an
event handler
representing the code to be called when theafterprint (en-US)
event is raised. WindowEventHandlers.onbeforeprint
(en-US)- Is an
event handler
representing the code to be called when thebeforeprint (en-US)
event is raised. WindowEventHandlers.onbeforeunload
- Is an
event handler
representing the code to be called when thebeforeunload (en-US)
event is raised. WindowEventHandlers.onhashchange
- Is an
event handler
representing the code to be called when thehashchange (en-US)
event is raised. WindowEventHandlers.onlanguagechange
(en-US) Experimental- Is an
event handler
representing the code to be called when thelanguagechange (en-US)
event is raised. WindowEventHandlers.onmessage
(en-US)- Is an
event handler
representing the code to be called when themessage
event is raised. WindowEventHandlers.onoffline
- Is an
event handler
representing the code to be called when theoffline (en-US)
event is raised. WindowEventHandlers.ononline
- Is an
event handler
representing the code to be called when theonline (en-US)
event is raised. WindowEventHandlers.onpagehide
- Is an
event handler
representing the code to be called when thepagehide (en-US)
event is raised. WindowEventHandlers.onpageshow
- Is an
event handler
representing the code to be called when thepageshow (en-US)
event is raised. WindowEventHandlers.onpopstate
- Is an
event handler
representing the code to be called when thepopstate (en-US)
event is raised. WindowEventHandlers.onresize
- Is an
event handler
representing the code to be called when theresize (en-US)
event is raised. WindowEventHandlers.onstorage
(en-US)- Is an
event handler
representing the code to be called when thestorage (en-US)
event is raised. WindowEventHandlers.onunload
- Is an
event handler
representing the code to be called when theunload (en-US)
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
{{Compat}}