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 theafterprint
event is raised. WindowEventHandlers.onbeforeprint
- Is an
EventHandler
representing the code to be called when thebeforeprint
event is raised. WindowEventHandlers.onbeforeunload
- Is an
EventHandler
representing the code to be called when thebeforeunload
event is raised. WindowEventHandlers.onhashchange
- Is an
EventHandler
representing the code to be called when thehashchange
event is raised. WindowEventHandlers.onlanguagechange
- Is an
EventHandler
representing the code to be called when thelanguagechange
event is raised. WindowEventHandlers.onmessage
- Is an
EventHandler
representing the code to be called when themessage
event is raised. WindowEventHandlers.onoffline
- Is an
EventHandler
representing the code to be called when theoffline
event is raised. WindowEventHandlers.ononline
- Is an
EventHandler
representing the code to be called when theonline
event is raised. WindowEventHandlers.onpagehide
- Is an
EventHandler
representing the code to be called when thepagehide
event is raised. WindowEventHandlers.onpageshow
- Is an
EventHandler
representing the code to be called when thepageshow
event is raised. WindowEventHandlers.onpopstate
- Is an
EventHandler
representing the code to be called when thepopstate
event is raised. WindowEventHandlers.onresize
- Is an
EventHandler
representing the code to be called when theresize
event is raised. WindowEventHandlers.onstorage
- Is an
EventHandler
representing the code to be called when thestorage
event is raised. WindowEventHandlers.onunload
- Is an
EventHandler
representing the code to be called when theunload
event is raised.
Methods
This interface defines no method.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard Die Definition von 'GlobalEventHandlers' in dieser Spezifikation. |
Lebender Standard | No change since the latest snapshot, HTML 5.1. |
HTML 5.1 Die Definition von 'GlobalEventHandlers' in dieser Spezifikation. |
Empfehlung | Snapshot of HTML Living Standard. Added onlanguage since the Unknown snapshot. |
HTML5 Die Definition von 'GlobalEventHandlers' in dieser Spezifikation. |
Empfehlung | Snapshot of HTML Living Standard. Creation of WindowEventHandlers (properties where on the target before it). |
Browser compatibility
Wir konvertieren die Kompatibilitätsdaten in ein maschinenlesbares JSON Format.
Diese Kompatibilitätstabelle liegt noch im alten Format vor,
denn die darin enthaltenen Daten wurden noch nicht konvertiert.
Finde heraus wie du helfen kannst!
Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Ja) | (Ja) | ? | ? | ? |
onhashchange |
3.6 (1.9.2) | ? | ? | ? | ? |
onlanguage |
32 (32) | ? | ? | ? | ? |
onstorage |
Nicht unterstützt | ? | ? | ? | ? |
Feature | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | (Ja) | ? | ? | ? | ? |
onhashchange |
1.0 (1.9.2) | ? | ? | ? | ? |
onlanguage |
32.0 (32) | ? | ? | ? | ? |
onstorage |
Nicht unterstützt | ? | ? | ? | ? |