WindowEventHandlers
WindowEventHandlers
descreve os manipuladores de eventos comuns a várias interfaces como Window
, ou HTMLBodyElement
(en-US) e HTMLFrameSetElement
(en-US). Cada uma dessas interfaces podendo implementar manipuladores de eventos específicos adicionais.
WindowEventHandlers
não é uma interface e nenhum objeto desse tipo pode ser criado.
Properties
As propriedades de evento, no formulário onXYZ
, são definidas no WindowEventHandlers
, e implementadas por Window
, e WorkerGlobalScope
(en-US) para desenvolvedores web.
WindowEventHandlers.onafterprint
(en-US)- É uma
EventHandler
(en-US) representando o código que será chamando quando o eventoafterprint (en-US)
é invocado. WindowEventHandlers.onbeforeprint
(en-US)- É um
EventHandler
(en-US) representando o código que será chamado quando o eventobeforeprint (en-US)
é invocado. WindowEventHandlers.onbeforeunload
(en-US)- É um
EventHandler
(en-US) representando o código que será chamado quando o eventobeforeunload (en-US)
é invocado. WindowEventHandlers.onhashchange
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventohashchange (en-US)
é invocado. WindowEventHandlers.onlanguagechange
(en-US)- É um
EventHandler
(en-US) representando o código que será chamado quando o eventolanguagechange (en-US)
é invocado. WindowEventHandlers.onmessage
(en-US)- É um
EventHandler
(en-US) representando o código que será chamado quando o eventomessage
é invocado. WindowEventHandlers.onoffline
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventooffline (en-US)
é invocado. WindowEventHandlers.ononline
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventoonline (en-US)
é invocado. WindowEventHandlers.onpagehide
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventopagehide (en-US)
é invocado. WindowEventHandlers.onpageshow
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventopageshow (en-US)
é invocado. WindowEventHandlers.onpopstate
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventopopstate (en-US)
é invocado. WindowEventHandlers.onresize
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventoresize (en-US)
é invocado. WindowEventHandlers.onstorage
- É um
EventHandler
(en-US) representando o código que será chamado quando o eventostorage (en-US)
é invocado. WindowEventHandlers.onunload
(en-US)- É um
EventHandler
(en-US) representando o código que será chamado quando o eventounload (en-US)
é invocado.
Métodos
Esta interface não define métodos.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'GlobalEventHandlers' in that specification. |
Padrão em tempo real | No change since the latest snapshot, HTML 5.1. |
HTML 5.1 The definition of 'GlobalEventHandlers' in that specification. |
Recomendação | Snapshot of HTML Living Standard. Added onlanguage since the Unknown snapshot. |
HTML5 The definition of 'GlobalEventHandlers' in that specification. |
Recomendação | Snapshot of HTML Living Standard. Creation of WindowEventHandlers (properties where on the target before it). |
Browser compatibility
Estamos convertendo nossos dados de compatibilidade para o formato JSON.
Esta tabela de compatibilidade ainda usa o formato antigo,
pois ainda não convertemos os dados que ela contém.
Descubra como você pode ajudar! (en-US)
Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | ? | ? | ? |
onhashchange |
3.6 (1.9.2) | ? | ? | ? | ? |
onlanguage |
32 (32) | ? | ? | ? | ? |
onstorage |
Não suportado | ? | ? | ? | ? |
Feature | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | (Yes) | ? | ? | ? | ? |
onhashchange |
1.0 (1.9.2) | ? | ? | ? | ? |
onlanguage |
32.0 (32) | ? | ? | ? | ? |
onstorage |
Não suportado | ? | ? | ? | ? |