From ac182bafc5792449e795a875ce5b529da5ae9f92 Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Mon, 26 Sep 2022 14:02:53 +0200 Subject: [PATCH 1/2] move *.html to *.md --- files/pt-br/web/events/{index.html => index.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename files/pt-br/web/events/{index.html => index.md} (100%) diff --git a/files/pt-br/web/events/index.html b/files/pt-br/web/events/index.md similarity index 100% rename from files/pt-br/web/events/index.html rename to files/pt-br/web/events/index.md From 0e7efdada5e185dae9e9ccfc1f373fe6dc93dcb5 Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Mon, 26 Sep 2022 14:03:01 +0200 Subject: [PATCH 2/2] convert content to md --- files/pt-br/web/events/index.md | 3167 ++++++------------------------- 1 file changed, 621 insertions(+), 2546 deletions(-) diff --git a/files/pt-br/web/events/index.md b/files/pt-br/web/events/index.md index 8f33214ad5bc3e..186426bfebc055 100644 --- a/files/pt-br/web/events/index.md +++ b/files/pt-br/web/events/index.md @@ -10,2626 +10,701 @@ tags: - Web translation_of: Web/Events --- -

Eventos Dom (Dom Events) são utilizados para notificar o código de novidades durante a navegação do usuário. Cada evento é representado por um objeto que é baseado na interface {{domxref("Event")}}, e pode ter campos customizados adicionados e/ou funções usadas para obter informações adicionais sobre o que aconteceu. Eventos podem representar desde interações básicas do usuário (cliques, rolagem da página...) até notificações automáticas de novidades no DOM.

- -

Esse artigo apresenta uma lista de eventos que podem ser enviados; alguns são padrões definidos em especificações oficiais, enquanto outros são eventos utilizados internamente por navegadores específicos; por exemplo, eventos específicos da Mozilla são organizados de modo que plugins e complementos podem usá-los para interagir com o navegador.

- -

Categorias comuns

- -

Recursos

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("cached")}}Os recursos listados no manifesto foram baixados, e a aplicação ja está armazenada em cache.
{{Event("error")}}Falha no carregamento do recurso.
{{Event("abort")}}O carregamento do recurso foi abortado
{{Event("load")}}O recurso e suas dependências foram carregadas
{{Event("beforeunload")}}Os recursos da página que estavam sendo baixados estão prestes a ser cancelados.
{{Event("unload")}}O documento ou suas dependências estão sendo canceladas.
- -

Rede

- - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("online")}}O navegador está conectado à rede.
{{Event("offline")}}O navegador perdeu acesso à rede
- -

Foco

- - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("focus")}}O elemento recebeu o foco (False para Bubbles)
{{Event("blur")}}O elemento perdeu o foco (False para Bubbles)
- -

WebSocket

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
openConexão WebSocket estabelecida
messageMensagem recebida através do WebSocket
{{Event("error")}}A conexão WebSocket foi encerrada, com erro na transmissão / recepção de dados
closeConexão encerrada
- -

Histórico de sessão

- - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("pagehide")}}Quando o documento está para ser fechado e guardado no cache
{{Event("pageshow")}}Quando o documento é carregado pela primeira vez
{{Event("popstate")}}Quando o navegador carrega uma nova página ou restaura um estado salvo com History.
- -

Animações CSS

- - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("animationstart")}}A animação começou
{{Event("animationend")}}A animação acabou
{{Event("animationiteration")}}A animação se repete
- -

Transição CSS

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("transitionstart")}}A transição CSS começou (depois de algum delay)
{{Event("transitioncancel")}}A transição CSS foi cancelada
{{Event("transitionend")}}A transição CSS acabou
{{Event("transitionrun")}}A transição CSS começou (antes de qualquer delay).
- -

Formulários

- - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("reset")}}Botão de reset pressionado
{{Event("submit")}}Botão de submit pressionado
- -

Impressão

- - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("beforeprint")}}Caixa de diálogo de impressão está aberta
{{Event("afterprint")}}Caixa de diálogo de impressão está fechada
- -

Composição de texto

- - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("compositionstart")}}A composição de texto está preparada (semelhante ao keydown para uma entrada de teclado, mas funciona com outras entradas, como reconhecimento de fala).
{{Event("compositionupdate")}}Um caracter foi adicionado à trecho de texto que está sendo escrito
{{Event("compositionend")}}A composição de texto foi finalizada, ou cancelada.
- -

Tela

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("fullscreenchange")}}Um elemento alternou o modo de visualização para fullscreeen ou normal
{{Event("fullscreenerror")}}Não foi possível alternar para o modo fullscreen por problemas técnicos ou falta de permissão
{{Event("resize")}}A tela foi redimensionada
{{Event("scroll")}}A tela foi rolada (movimento de scroll)
- -

Área de transferência

- - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("cut")}}A seleção foi recortada e copiada para a área de transferência
{{Event("copy")}}A seleção foi copiada para a área de transferência
{{Event("paste")}}O item que estava na área de transferência foi colado
- -

Teclado

- - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("keydown")}}Qualquer tecla foi pressionada
{{Event("keypress")}}Qualquer tecla, com exceção de Shift, Fn e Caps Lock está pressionada (segurada)
{{Event("keyup")}}A tecla foi solta
- -

Mouse

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("auxclick")}} -

Um botão, ou dispositivo apontador (não primário) do dispositivo foi clicado e solto de um elemento.

-
{{Event("click")}}Um botão, ou dispositivo apontador (QUALQUER, mas em breve será apenas primário) foi clicado e solto.
{{Event("contextmenu")}}O botão direito do mouse foi clicado (antes do menu de contexto aparecer)
{{Event("dblclick")}}Um elemento foi clicado duas vezes em um intervalo de tempo curto
{{Event("mousedown")}}O mouse, ou dispositivo apontador está pressionando um elemento
{{Event("mouseenter")}}O mouse, ou dispositivo apontador está acima de um elemento que tem um listener ativo
{{Event("mouseleave")}}O mouse, ou dispositivo apontador foi removido do elemento com um listener
{{Event("mousemove")}}O mouse está se movendo enquanto está acima de um elemento com listener
{{Event("mouseover")}}O mouse foi movido para um elemento com um listener, ou em um de seus filhos
{{Event("mouseout")}}O mouse foi removido do elemento, ou de algum filho contendo um listener
{{Event("mouseup")}}O botão do mouse ou dispositivo foi solto
{{Event("pointerlockchange")}}O botão foi bloqueado ou liberado
{{Event("pointerlockerror")}}Não foi possível bloquear o dispositivo por motivo técnico ou de permissão
{{Event("select")}}Algum texto está sendo selecionado
{{Event("wheel")}}Foi detectada rotação no scroll do mouse
- -

Arrastar e soltar

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("drag")}}Um elemento ou uma seleção de texto está sendo arrastado.
{{Event("dragend")}}Uma operação de arrastar foi abortada (Por soltar o botão do mouse, ou apertando o Esc).
{{Event("dragenter")}}Um elemento ou texto selecionado foi arrastado para um local de destino válido
{{Event("dragstart")}}Uma operação de arrastar foi iniciada
{{Event("dragleave")}}Um elemento ou texto selecionado foi arrastado para fora de um local de destino válido
{{Event("dragover")}}Um elemento ou uma seleção de texto está sendo arrastado em uma área de destino válida.
{{Event("drop")}}Um elemento ou uma seleção de texto foi solto em um destino válido.
- -

Mídia

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
{{Event("audioprocess")}}A entrada do buffer de {{DOMxRef("ScriptProcessorNode")}} está pronta para ser processada
{{Event("canplay")}}O navegador pode reproduzir o arquivo, mas estima que não haverá dados suficientes para reproduzir o arquivo sem interrupções para recarregar o buffer.
{{Event("canplaythrough")}}O navegador estima que poderá reproduzir o arquivo sem interrupções até o final.
{{Event("complete")}}A renderização de {{DOMxRef("OfflineAudioContext")}} foi finalizada.
{{Event("durationchange")}}O atributo duration foi atualizado.
{{Event("emptied")}}Ausencia de conteúdo. Por exemplo, este evento é enviado se a mídia foi carregada (ou parcialmente) e o método load() foi chamado para recarregar o conteúdo.
{{Event("ended")}}A reprodução foi finalizada devido ao fim do conteúdo
{{Event("loadeddata")}}O primeiro frame de mídia foi carregado.
{{Event("loadedmetadata")}}Os metadados foram carregados.
{{Event("pause")}}A reprodução foi pausada.
{{Event("play")}}A reprodução foi iniciada.
{{Event("playing")}}A reprodução está pronta para iniciar depois de ser pausada, ou atrasada devido a falta de dados.
{{Event("ratechange")}}A taxa de reprodução foi alterada.
{{Event("seeked")}}Operação de busca finalizada.
{{Event("seeking")}}Operação de busca iniciada.
{{Event("stalled")}}The user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
{{Event("suspend")}}Media data loading has been suspended.
{{Event("timeupdate")}}The time indicated by the currentTime attribute has been updated.
{{Event("volumechange")}}The volume has changed.
{{Event("waiting")}}Playback has stopped because of a temporary lack of data.
- -

Progresso

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
abortO progresso terminou (com sucesso).
{{Event("error")}}Erro no progresso.
loadO progresso foi bem sucedido.
{{Event("loadend")}}O progresso foi interrompido (devido a 'error', 'abort' ou load)
{{Event("loadstart")}}O progresso iniciou
{{Event("progress")}}Em progresso
{{Event("timeout")}}O progresso foi finalizado pois o tempo pré determinado foi expirado.
- -

Armazenamento

- -

{{Event("change")}} (see Non-standard events)
- {{Event("storage")}}

- -

Atualização

- -

{{Event("checking")}}
- {{Event("downloading")}}
- {{Event("error")}}
- {{Event("noupdate")}}
- {{Event("obsolete")}}
- {{Event("updateready")}}

- -

Mudança de valores

- -

{{Event("broadcast")}}
- {{Event("CheckboxStateChange")}}
- {{Event("hashchange")}}
- {{Event("input")}}
- {{Event("RadioStateChange")}}
- {{Event("readystatechange")}}
- {{Event("ValueChange")}}

- -

Sem categoria

- -

{{Event("invalid")}}
- {{Event("localized")}}
- message
- message
- message
- open
- {{Event("show")}}

- -

Eventos pouco comuns e não padronizados

- - - -

Eventos de busca abortáveis

- - - - - - - - - - - - - - - - -
Nome do eventoMomento do disparo
abortUma requisição ao DOM foi cancelada, utilizando {{DOMxRef("AbortController.abort()")}}.
- - - - - -

Eventos padrão

- -

Esses eventos estão definidos nas especificações oficiais da Web, e são comum à todos o browsers. Cada evento é listado junto com a interface que representa o objeto enviado aos destinatários do evento (para que você possa encontrar informações sobre quais dados são fornecidos com cada evento), bem como um link para a especificação ou especificações que definem o evento.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do EventoTipo do EventoSpecificationFired when...
{{event("abort")}}{{domxref("UIEvent")}}DOM L3The loading of a resource has been aborted.
abort{{domxref("ProgressEvent")}}Progress and XMLHttpRequestProgression has been terminated (not due to an error).
abort{{domxref("Event")}}IndexedDBA transaction has been aborted.
{{event("afterprint")}}{{gecko_minversion_inline("6")}}{{domxref("Event")}}HTML5The associated document has started printing or the print preview has been closed.
{{event("animationend")}}{{domxref("AnimationEvent")}}CSS AnimationsA CSS animation has completed.
{{event("animationiteration")}}{{domxref("AnimationEvent")}}CSS AnimationsA CSS animation is repeated.
{{event("animationstart")}}{{domxref("AnimationEvent")}}CSS AnimationsA CSS animation has started.
{{event("audioprocess")}}{{domxref("AudioProcessingEvent")}}{{SpecName('Web Audio API', '#AudioProcessingEvent', 'audioprocess')}}The input buffer of a {{domxref("ScriptProcessorNode")}} is ready to be processed.
{{event("beforeprint")}} {{gecko_minversion_inline("6")}}{{domxref("Event")}}HTML5The associated document is about to be printed or previewed for printing.
{{event("beforeunload")}}{{domxref("BeforeUnloadEvent")}}HTML5
{{event("beginEvent")}}{{domxref("TimeEvent")}}SVGA SMIL animation element begins.
blockedIndexedDBAn open connection to a database is blocking a versionchange transaction on the same database.
{{event("blur")}}{{domxref("FocusEvent")}}DOM L3An element has lost focus (does not bubble).
{{event("cached")}}{{domxref("Event")}}OfflineThe resources listed in the manifest have been downloaded, and the application is now cached.
{{event("canplay")}}{{domxref("Event")}}HTML5 mediaThe user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
{{event("canplaythrough")}}{{domxref("Event")}}HTML5 mediaThe user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
{{event("change")}}{{domxref("Event")}}DOM L2, HTML5An element loses focus and its value changed since gaining focus.
{{event("chargingchange")}}{{domxref("Event")}}Battery statusThe battery begins or stops charging.
{{event("chargingtimechange")}}{{domxref("Event")}}Battery statusThe chargingTime attribute has been updated.
{{event("checking")}}{{domxref("Event")}}OfflineThe user agent is checking for an update, or attempting to download the cache manifest for the first time.
{{event("click")}}{{domxref("MouseEvent")}}DOM L3A pointing device button has been pressed and released on an element.
close{{domxref("Event")}}WebSocketA WebSocket connection has been closed.
{{event("compassneedscalibration")}}{{domxref("SensorEvent")}}OrientationThe compass used to obtain orientation data is in need of calibration.
completeIndexedDB
{{event("complete")}}{{domxref("OfflineAudioCompletionEvent")}}{{SpecName('Web Audio API', '#OfflineAudioCompletionEvent-section', 'OfflineAudioCompletionEvent')}}The rendering of an {{domxref("OfflineAudioContext")}} is terminated.
{{event("compositionend")}}{{gecko_minversion_inline("9")}}{{domxref("CompositionEvent")}}DOM L3The composition of a passage of text has been completed or canceled.
{{event("compositionstart")}}{{gecko_minversion_inline("9")}}{{domxref("CompositionEvent")}}DOM L3The composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition).
{{event("compositionupdate")}}{{gecko_minversion_inline("9")}}{{domxref("CompositionEvent")}}DOM L3A character is added to a passage of text being composed.
{{event("contextmenu")}}{{domxref("MouseEvent")}}HTML5The right button of the mouse is clicked (before the context menu is displayed).
{{event("copy")}}{{domxref("ClipboardEvent")}}ClipboardThe text selection has been added to the clipboard.
{{event("cut")}}{{domxref("ClipboardEvent")}}ClipboardThe text selection has been removed from the document and added to the clipboard.
{{event("dblclick")}}{{domxref("MouseEvent")}}DOM L3A pointing device button is clicked twice on an element.
{{event("devicelight")}}{{domxref("DeviceLightEvent")}}Ambient Light EventsFresh data is available from a light sensor.
{{event("devicemotion")}}{{domxref("DeviceMotionEvent")}}Device Orientation EventsFresh data is available from a motion sensor.
{{event("deviceorientation")}}{{domxref("DeviceOrientationEvent")}}Device Orientation EventsFresh data is available from an orientation sensor.
{{event("deviceproximity")}}{{domxref("DeviceProximityEvent")}}Proximity EventsFresh data is available from a proximity sensor (indicates an approximated distance between the device and a nearby object).
{{event("dischargingtimechange")}}{{domxref("Event")}}Battery statusThe dischargingTime attribute has been updated.
DOMActivate {{deprecated_inline}}{{domxref("UIEvent")}}DOM L3A button, link or state changing element is activated (use {{event("click")}} instead).
DOMAttributeNameChanged {{deprecated_inline}}{{domxref("MutationNameEvent")}}DOM L3 RemovedThe name of an attribute changed (use mutation observers instead).
DOMAttrModified {{deprecated_inline}}{{domxref("MutationEvent")}}DOM L3The value of an attribute has been modified (use mutation observers instead).
DOMCharacterDataModified {{deprecated_inline}}{{domxref("MutationEvent")}}DOM L3A text or another CharacterData has changed (use mutation observers instead).
{{event("DOMContentLoaded")}}{{domxref("Event")}}HTML5The document has finished loading (but not its dependent resources).
DOMElementNameChanged {{deprecated_inline}}{{domxref("MutationNameEvent")}}DOM L3 RemovedThe name of an element changed (use mutation observers instead).
DOMFocusIn {{deprecated_inline}}{{domxref("FocusEvent")}}DOM L3An element has received focus (use {{event("focus")}} or {{event("focusin")}} instead).
DOMFocusOut {{deprecated_inline}}{{domxref("FocusEvent")}}DOM L3An element has lost focus (use {{event("blur")}} or {{event("focusout")}} instead).
DOMNodeInserted {{deprecated_inline}}{{domxref("MutationEvent")}}DOM L3A node has been added as a child of another node (use mutation observers instead).
DOMNodeInsertedIntoDocument {{deprecated_inline}}{{domxref("MutationEvent")}}DOM L3A node has been inserted into the document (use mutation observers instead).
DOMNodeRemoved {{deprecated_inline}}{{domxref("MutationEvent")}}DOM L3A node has been removed from its parent node (use mutation observers instead).
DOMNodeRemovedFromDocument {{deprecated_inline}}{{domxref("MutationEvent")}}DOM L3A node has been removed from the document (use mutation observers instead).
DOMSubtreeModified {{deprecated_inline}}{{domxref("MutationEvent")}}DOM L3A change happened in the document (use mutation observers instead).
{{event("downloading")}}{{domxref("Event")}}OfflineThe user agent has found an update and is fetching it, or is downloading the resources listed by the cache manifest for the first time.
{{event("drag")}}{{domxref("DragEvent")}}HTML5An element or text selection is being dragged (every 350ms).
{{event("dragend")}}{{domxref("DragEvent")}}HTML5A drag operation is being ended (by releasing a mouse button or hitting the escape key).
{{event("dragenter")}}{{domxref("DragEvent")}}HTML5A dragged element or text selection enters a valid drop target.
{{event("dragleave")}}{{domxref("DragEvent")}}HTML5A dragged element or text selection leaves a valid drop target.
{{event("dragover")}}{{domxref("DragEvent")}}HTML5An element or text selection is being dragged over a valid drop target (every 350ms).
{{event("dragstart")}}{{domxref("DragEvent")}}HTML5The user starts dragging an element or text selection.
{{event("drop")}}{{domxref("DragEvent")}}HTML5An element is dropped on a valid drop target.
{{event("durationchange")}}{{domxref("Event")}}HTML5 mediaThe duration attribute has been updated.
{{event("emptied")}}{{domxref("Event")}}HTML5 mediaThe media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it.
{{event("ended")}}{{domxref("Event")}}HTML5 mediaPlayback has stopped because the end of the media was reached.
{{event("ended_(Web_Audio)", "ended")}}{{domxref("Event")}}{{SpecName("Web Audio API")}}
{{event("endEvent")}}{{domxref("TimeEvent")}}SVGA SMIL animation element ends.
{{event("error")}}{{domxref("UIEvent")}}DOM L3A resource failed to load.
{{event("error")}}{{domxref("ProgressEvent")}}Progress and XMLHttpRequestProgression has failed.
{{event("error")}}{{domxref("Event")}}OfflineAn error occurred while downloading the cache manifest or updating the content of the application.
{{event("error")}}{{domxref("Event")}}WebSocketA WebSocket connection has been closed with prejudice (some data couldn't be sent for example).
{{event("error")}}{{domxref("Event")}}Server Sent EventsAn event source connection has been failed.
{{event("error")}}{{domxref("Event")}}IndexedDBA request caused an error and failed.
{{event("focus")}}{{domxref("FocusEvent")}}DOM L3An element has received focus (does not bubble).
{{event("focusin")}}{{domxref("FocusEvent")}}DOM L3An element is about to receive focus (bubbles).
{{event("focusout")}}{{domxref("FocusEvent")}}DOM L3An element is about to lose focus (bubbles).
{{event("fullscreenchange")}}{{domxref("Event")}}Full ScreenAn element was turned to fullscreen mode or back to normal mode.
{{event("fullscreenerror")}}{{domxref("Event")}}Full ScreenIt was impossible to switch to fullscreen mode for technical reasons or because the permission was denied.
{{event("gamepadconnected")}}{{domxref("GamepadEvent")}}GamepadA gamepad has been connected.
{{event("gamepaddisconnected")}}{{domxref("GamepadEvent")}}GamepadA gamepad has been disconnected.
{{event("hashchange")}}{{domxref("HashChangeEvent")}}HTML5The fragment identifier of the URL has changed (the part of the URL after the #).
{{event("input")}}{{domxref("Event")}}HTML5The value of an element changes or the content of an element with the attribute contenteditable is modified.
{{event("invalid")}}{{domxref("Event")}}HTML5A submittable element has been checked and doesn't satisfy its constraints.
{{event("keydown")}}{{domxref("KeyboardEvent")}}DOM L3A key is pressed down.
{{event("keypress")}}{{domxref("KeyboardEvent")}}DOM L3A key is pressed down and that key normally produces a character value (use input instead).
{{event("keyup")}}{{domxref("KeyboardEvent")}}DOM L3A key is released.
{{event("languagechange")}}{{domxref("Event")}}{{ SpecName('HTML5.1', '#dom-navigator-languages', 'NavigatorLanguage.languages') }}
{{event("levelchange")}}{{domxref("Event")}}Battery statusThe level attribute has been updated.
{{event("load")}}{{domxref("UIEvent")}}DOM L3A resource and its dependent resources have finished loading.
load{{domxref("ProgressEvent")}}Progress and XMLHttpRequestProgression has been successful.
{{event("loadeddata")}}{{domxref("Event")}}HTML5 mediaThe first frame of the media has finished loading.
{{event("loadedmetadata")}}{{domxref("Event")}}HTML5 mediaThe metadata has been loaded.
{{event("loadend")}}{{domxref("ProgressEvent")}}Progress and XMLHttpRequestProgress has stopped (after "error", "abort" or "load" have been dispatched).
{{event("loadstart")}}{{domxref("ProgressEvent")}}Progress and XMLHttpRequestProgress has begun.
message{{domxref("MessageEvent")}}WebSocketA message is received through a WebSocket.
message{{domxref("MessageEvent")}}Web WorkersA message is received from a Web Worker.
message{{domxref("MessageEvent")}}Web MessagingA message is received from a child (i)frame or a parent window.
message{{domxref("MessageEvent")}}Server Sent EventsA message is received through an event source.
{{event("mousedown")}}{{domxref("MouseEvent")}}DOM L3A pointing device button (usually a mouse) is pressed on an element.
{{event("mouseenter")}}{{domxref("MouseEvent")}}DOM L3A pointing device is moved onto the element that has the listener attached.
{{event("mouseleave")}}{{domxref("MouseEvent")}}DOM L3A pointing device is moved off the element that has the listener attached.
{{event("mousemove")}}{{domxref("MouseEvent")}}DOM L3A pointing device is moved over an element.
{{event("mouseout")}}{{domxref("MouseEvent")}}DOM L3A pointing device is moved off the element that has the listener attached or off one of its children.
{{event("mouseover")}}{{domxref("MouseEvent")}}DOM L3A pointing device is moved onto the element that has the listener attached or onto one of its children.
{{event("mouseup")}}{{domxref("MouseEvent")}}DOM L3A pointing device button is released over an element.
{{event("noupdate")}}{{domxref("Event")}}OfflineThe manifest hadn't changed.
{{event("obsolete")}}{{domxref("Event")}}OfflineThe manifest was found to have become a 404 or 410 page, so the application cache is being deleted.
{{event("offline")}}{{domxref("Event")}}HTML5 offlineThe browser has lost access to the network.
{{event("online")}}{{domxref("Event")}}HTML5 offlineThe browser has gained access to the network (but particular websites might be unreachable).
open{{domxref("Event")}}WebSocketA WebSocket connection has been established.
open{{domxref("Event")}}Server Sent EventsAn event source connection has been established.
{{event("orientationchange")}}{{domxref("Event")}}Screen OrientationThe orientation of the device (portrait/landscape) has changed
{{event("pagehide")}}{{domxref("PageTransitionEvent")}}HTML5A session history entry is being traversed from.
{{event("pageshow")}}{{domxref("PageTransitionEvent")}}HTML5A session history entry is being traversed to.
{{event("paste")}}{{domxref("ClipboardEvent")}}ClipboardData has been transfered from the system clipboard to the document.
{{event("pause")}}{{domxref("Event")}}HTML5 mediaPlayback has been paused.
{{event("pointerlockchange")}}{{domxref("Event")}}Pointer LockThe pointer was locked or released.
{{event("pointerlockerror")}}{{domxref("Event")}}Pointer LockIt was impossible to lock the pointer for technical reasons or because the permission was denied.
{{event("play")}}{{domxref("Event")}}HTML5 mediaPlayback has begun.
{{event("playing")}}{{domxref("Event")}}HTML5 mediaPlayback is ready to start after having been paused or delayed due to lack of data.
{{event("popstate")}}{{domxref("PopStateEvent")}}HTML5A session history entry is being navigated to (in certain cases).
{{event("progress")}}{{domxref("ProgressEvent")}}Progress and XMLHttpRequestIn progress.
progress{{domxref("ProgressEvent")}}OfflineThe user agent is downloading resources listed by the manifest.
{{event("ratechange")}}{{domxref("Event")}}HTML5 mediaThe playback rate has changed.
{{event("readystatechange")}}{{domxref("Event")}}HTML5 and XMLHttpRequestThe readyState attribute of a document has changed.
{{event("repeatEvent")}}{{domxref("TimeEvent")}}SVGA SMIL animation element is repeated.
{{event("reset")}}{{domxref("Event")}}DOM L2, HTML5A form is reset.
{{event("resize")}}{{domxref("UIEvent")}}DOM L3The document view has been resized.
{{event("scroll")}}{{domxref("UIEvent")}}DOM L3The document view or an element has been scrolled.
{{event("seeked")}}{{domxref("Event")}}HTML5 mediaA seek operation completed.
{{event("seeking")}}{{domxref("Event")}}HTML5 mediaA seek operation began.
{{event("select")}}{{domxref("UIEvent")}}DOM L3Some text is being selected.
{{event("show")}}{{domxref("MouseEvent")}}HTML5A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute
{{event("stalled")}}{{domxref("Event")}}HTML5 mediaThe user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
{{event("storage")}}{{domxref("StorageEvent")}}Web StorageA storage area (localStorage or sessionStorage) has changed.
{{event("submit")}}{{domxref("Event")}}DOM L2, HTML5A form is submitted.
success{{domxref("Event")}}IndexedDBA request successfully completed.
{{event("suspend")}}{{domxref("Event")}}HTML5 mediaMedia data loading has been suspended.
{{event("SVGAbort")}}{{domxref("SVGEvent")}}SVGPage loading has been stopped before the SVG was loaded.
{{event("SVGError")}}{{domxref("SVGEvent")}}SVGAn error has occurred before the SVG was loaded.
{{event("SVGLoad")}}{{domxref("SVGEvent")}}SVGAn SVG document has been loaded and parsed.
{{event("SVGResize")}}{{domxref("SVGEvent")}}SVGAn SVG document is being resized.
{{event("SVGScroll")}}{{domxref("SVGEvent")}}SVGAn SVG document is being scrolled.
{{event("SVGUnload")}}{{domxref("SVGEvent")}}SVGAn SVG document has been removed from a window or frame.
{{event("SVGZoom")}}{{domxref("SVGZoomEvent")}}SVGAn SVG document is being zoomed.
{{event("timeout")}}{{domxref("ProgressEvent")}}XMLHttpRequest
{{event("timeupdate")}}{{domxref("Event")}}HTML5 mediaThe time indicated by the currentTime attribute has been updated.
{{event("touchcancel")}}{{domxref("TouchEvent")}}Touch EventsA touch point has been disrupted in an implementation-specific manners (too many touch points for example).
{{event("touchend")}}{{domxref("TouchEvent")}}Touch EventsA touch point is removed from the touch surface.
{{event("touchenter")}}{{domxref("TouchEvent")}}Touch Events RemovedA touch point is moved onto the interactive area of an element.
{{event("touchleave")}}{{domxref("TouchEvent")}}Touch Events RemovedA touch point is moved off the interactive area of an element.
{{event("touchmove")}}{{domxref("TouchEvent")}}Touch EventsA touch point is moved along the touch surface.
{{event("touchstart")}}{{domxref("TouchEvent")}}Touch EventsA touch point is placed on the touch surface.
{{event("transitionend")}}{{domxref("TransitionEvent")}}CSS TransitionsA CSS transition has completed.
{{event("unload")}}{{domxref("UIEvent")}}DOM L3The document or a dependent resource is being unloaded.
{{event("updateready")}}{{domxref("Event")}}OfflineThe resources listed in the manifest have been newly redownloaded, and the script can use swapCache() to switch to the new cache.
upgradeneededIndexedDBAn attempt was made to open a database with a version number higher than its current version. A versionchange transaction has been created.
{{event("userproximity")}}{{domxref("SensorEvent")}}SensorFresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not).
versionchangeIndexedDBA versionchange transaction completed.
{{event("visibilitychange")}}{{domxref("Event")}}Page visibilityThe content of a tab has become visible or has been hidden.
{{event("volumechange")}}{{domxref("Event")}}HTML5 mediaThe volume has changed.
{{event("waiting")}}{{domxref("Event")}}HTML5 mediaPlayback has stopped because of a temporary lack of data.
{{event("wheel")}}{{gecko_minversion_inline("17")}}{{domxref("WheelEvent")}}DOM L3A wheel button of a pointing device is rotated in any direction.
- -

Eventos não padronizados

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do EventoTipo do EventoSpecificationFired when...
{{event("afterscriptexecute")}}{{domxref("Event")}}Mozilla SpecificA script has been executed.
{{event("beforescriptexecute")}}{{domxref("Event")}}Mozilla SpecificA script is about to be executed.
{{event("beforeinstallprompt")}}{{domxref("Event")}}Chrome specificA user is prompted to save a web site to a home screen on mobile.
{{event("cardstatechange")}}Firefox OS specificThe {{domxref("MozMobileConnection.cardState")}} property changes value.
{{event("change")}}{{domxref("DeviceStorageChangeEvent")}}Firefox OS specificThis event is triggered each time a file is created, modified or deleted on a given storage area.
{{event("connectionInfoUpdate")}}Firefox OS specificThe informations about the signal strength and the link speed have been updated.
{{event("cfstatechange")}}Firefox OS specificThe call forwarding state changes.
{{event("datachange")}}Firefox OS specificThe {{domxref("MozMobileConnection.data")}} object changes values.
{{event("dataerror")}}Firefox OS specificThe {{domxref("MozMobileConnection.data")}} object receive an error from the RIL.
{{event("DOMMouseScroll")}}{{deprecated_inline}}Mozilla specificThe wheel button of a pointing device is rotated (detail attribute is a number of lines). (use {{event("wheel")}} instead)
dragdrop {{deprecated_inline}}DragEventMozilla specificAn element is dropped (use {{event("drop")}} instead).
dragexit {{deprecated_inline}}DragEventMozilla specificA drag operation is being ended(use {{event("dragend")}} instead).
draggesture {{deprecated_inline}}DragEventMozilla specificThe user starts dragging an element or text selection (use {{event("dragstart")}} instead).
{{event("icccardlockerror")}}Firefox OS specificthe {{domxref("MozMobileConnection.unlockCardLock()")}} or {{domxref("MozMobileConnection.setCardLock()")}} methods fails.
{{event("iccinfochange")}}Firefox OS specificThe {{domxref("MozMobileConnection.iccInfo")}} object changes.
{{event("localized")}}Mozilla SpecificThe page has been localized using data-l10n-* attributes.
{{event("mousewheel")}}{{deprecated_inline}}IE inventedThe wheel button of a pointing device is rotated.
{{event("MozAudioAvailable")}}{{domxref("Event")}}Mozilla specificThe audio buffer is full and the corresponding raw samples are available.
MozBeforeResize {{obsolete_inline}}Mozilla specificA window is about to be resized.
{{event("mozbrowserclose")}}Firefox OS specificSent when window.close() is called within a browser iframe.
{{event("mozbrowsercontextmenu")}}Firefox OS specificSent when a browser {{HTMLElement("iframe")}} try to open a context menu.
{{event("mozbrowsererror")}}Firefox OS specificSent when an error occured while trying to load a content within a browser iframe
{{event("mozbrowsericonchange")}}Firefox OS specificSent when the favicon of a browser iframe changes.
{{event("mozbrowserlocationchange")}}Firefox OS specificSent when an browser iframe's location changes.
{{event("mozbrowserloadend")}}Firefox OS specificSent when the browser iframe has finished loading all its assets.
{{event("mozbrowserloadstart")}}Firefox OS specificSent when the browser iframe starts to load a new page.
{{event("mozbrowseropenwindow")}}Firefox OS specificSent when {{domxref("window.open()")}} is called within a browser iframe.
{{event("mozbrowsersecuritychange")}}Firefox OS specificSent when the SSL state changes within a browser iframe.
{{event("mozbrowsershowmodalprompt")}}Firefox OS specificSent when {{domxref("window.alert","alert()")}}, {{domxref("window.confirm","confirm()")}} or {{domxref("window.prompt","prompt()")}} are called within a browser iframe
{{event("mozbrowsertitlechange")}}Firefox OS specificSent when the document.title changes within a browser iframe.
{{event("MozGamepadButtonDown")}}To be specifiedA gamepad button is pressed down.
{{event("MozGamepadButtonUp")}}To be specifiedA gamepad button is released.
{{event("MozMousePixelScroll")}} {{deprecated_inline}}Mozilla specificThe wheel button of a pointing device is rotated (detail attribute is a number of pixels). (use wheel instead)
{{event("MozOrientation")}} {{deprecated_inline}}Mozilla specificFresh data is available from an orientation sensor (see deviceorientation).
{{event("MozScrolledAreaChanged")}}{{domxref("UIEvent")}}Mozilla specificThe document view has been scrolled or resized.
{{event("moztimechange")}}Mozilla specificThe time of the device has been changed.
MozTouchDown {{deprecated_inline}}Mozilla specificA touch point is placed on the touch surface (use touchstart instead).
MozTouchMove {{deprecated_inline}}Mozilla specificA touch point is moved along the touch surface (use touchmove instead).
MozTouchUp {{deprecated_inline}}Mozilla specificA touch point is removed from the touch surface (use touchend instead).
{{event("alerting")}}{{domxref("CallEvent")}}To be specifiedThe correspondent is being alerted (his/her phone is ringing).
{{event("busy")}}{{domxref("CallEvent")}}To be specifiedThe line of the correspondent is busy.
{{event("callschanged")}}{{domxref("CallEvent")}}To be specifiedA call has been added or removed from the list of current calls.
onconnected {{event("connected")}}{{domxref("CallEvent")}}To be specifiedA call has been connected.
{{event("connecting")}}{{domxref("CallEvent")}}To be specifiedA call is about to connect.
{{event("delivered")}}{{domxref("SMSEvent")}}To be specifiedAn SMS has been successfully delivered.
{{event("dialing")}}{{domxref("CallEvent")}}To be specifiedThe number of a correspondent has been dialed.
{{event("disabled")}}Firefox OS specificWifi has been disabled on the device.
{{event("disconnected")}}{{domxref("CallEvent")}}To be specifiedA call has been disconnected.
{{event("disconnecting")}}{{domxref("CallEvent")}}To be specifiedA call is about to disconnect.
{{event("enabled")}}Firefox OS specificWifi has been enabled on the device.
{{event("error_(Telephony)","error")}}{{domxref("CallEvent")}}To be specifiedAn error occurred.
{{event("held")}}{{domxref("CallEvent")}}To be specifiedA call has been held.
{{event("holding")}}{{domxref("CallEvent")}}To be specifiedA call is about to be held.
{{event("incoming")}}{{domxref("CallEvent")}}To be specifiedA call is being received.
{{event("received")}}{{domxref("SMSEvent")}}To be specifiedAn SMS has been received.
{{event("resuming")}}{{domxref("CallEvent")}}To be specifiedA call is about to resume.
{{event("sent")}}{{domxref("SMSEvent")}}To be specifiedAn SMS has been sent.
{{event("statechange")}}{{domxref("CallEvent")}}To be specifiedThe state of a call has changed.
{{event("statuschange")}}Firefox OS specificThe status of the Wifi connection changed.
{{event("overflow")}}{{domxref("UIEvent")}}Mozilla specificAn element has been overflowed by its content or has been rendered for the first time in this state (only works for elements styled with overflow != visible).
{{event("smartcard-insert")}}Mozilla specificA smartcard has been inserted.
{{event("smartcard-remove")}}Mozilla specificA smartcard has been removed.
{{event("stkcommand")}}Firefox OS specificThe STK Proactive Command is issued from ICC.
{{event("stksessionend")}}Firefox OS specificThe STK Session is terminated by ICC.
textMozilla SpecificA generic composition event occurred.
{{event("underflow")}}{{domxref("UIEvent")}}Mozilla specificAn element is no longer overflowed by its content (only works for elements styled with overflow != visible).
uploadprogress {{deprecated_inline}}{{domxref("ProgressEvent")}}Mozilla SpecificUpload is in progress (see {{event("progress")}}).
-

{{event("ussdreceived")}}

-
Firefox OS specificA new USSD message is received
{{event("voicechange")}}Firefox OS specificThe {{domxref("MozMobileConnection.voice")}} object changes values.
- -

Eventos específicos Mozilla

- -
-

Observação: esses eventos nunca são expostos no conteúdo da web e apenas podem ser usados no contexto do conteúdo do chrome.

-
- -

Eventos XUL

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nome do EventoTipo do EventoEspecificaçãoDisparado quando...
{{event("broadcast")}}XULAn observer noticed a change to the attributes of a watched broadcaster.
{{event("CheckboxStateChange")}}XULThe state of a checkbox has been changed either by a user action or by a script (useful for accessibility).
closeXULThe close button of the window has been clicked.
{{event("command")}}XULAn element has been activated.
{{event("commandupdate")}}XULA command update occurred on a commandset element.
{{event("DOMMenuItemActive")}}XULA menu or menuitem has been hovered or highlighted.
{{event("DOMMenuItemInactive")}}XULA menu or menuitem is no longer hovered or highlighted.
{{event("popuphidden")}}PopupEventXULA menupopup, panel or tooltip has been hidden.
{{event("popuphiding")}}PopupEventXULA menupopup, panel or tooltip is about to be hidden.
{{event("popupshowing")}}PopupEventXULA menupopup, panel or tooltip is about to become visible.
{{event("popupshown")}}PopupEventXULA menupopup, panel or tooltip has become visible.
{{event("RadioStateChange")}}XULThe state of a radio has been changed either by a user action or by a script (useful for accessibility).
{{event("ValueChange")}}XULThe value of an element has changed (a progress bar for example, useful for accessibility).
- -

Add-on-specific events

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Event NameEvent TypeSpecificationFired when...
MozSwipeGestureAddons specificA touch point is swiped across the touch surface
MozMagnifyGestureStartAddons specificTwo touch points start to move away from each other.
MozMagnifyGestureUpdateAddons specificTwo touch points move away from each other (after a MozMagnifyGestureStart).
MozMagnifyGestureAddons specificTwo touch points moved away from each other (after a sequence of MozMagnifyGestureUpdate).
MozRotateGestureStartAddons specificTwo touch points start to rotate around a point.
MozRotateGestureUpdateAddons specificTwo touch points rotate around a point (after a MozRotateGestureStart).
MozRotateGestureAddons specificTwo touch points rotate around a point (after a sequence of MozRotateGestureUpdate).
MozTapGestureAddons specificTwo touch points are tapped on the touch surface.
MozPressTapGestureAddons specificA "press-tap" gesture happened on the touch surface (first finger down, second finger down, second finger up, first finger up).
MozEdgeUIGestureAddons specificA touch point is swiped across the touch surface to invoke the edge UI (Win8 only).
MozAfterPaintAddons specificContent has been repainted.
DOMPopupBlockedAddons specificA popup has been blocked
DOMWindowCreatedAddons specificA window has been created.
DOMWindowCloseAddons specificA window is about to be closed.
DOMTitleChangedAddons specifcThe title of a window has changed.
DOMLinkAddedAddons specifcA link has been added a document.
DOMLinkRemovedAddons specifcA link has been removed inside from a document.
DOMMetaAddedAddons specificA meta element has been added to a document.
DOMMetaRemovedAddons specificA meta element has been removed from a document.
DOMWillOpenModalDialogAddons specificA modal dialog is about to open.
DOMModalDialogClosedAddons specificA modal dialog has been closed.
DOMAutoCompleteAddons specificThe content of an element has been auto-completed.
DOMFrameContentLoadedAddons specificThe frame has finished loading (but not its dependent resources).
AlertActiveAddons specificA notification element is shown.
AlertCloseAddons specificA notification element is closed.
fullscreenAddons specificBrowser fullscreen mode has been entered or left.
sizemodechangeAddons specificWindow has entered/left fullscreen mode, or has been minimized/unminimized.
MozEnteredDomFullscreenAddons specificDOM fullscreen mode has been entered.
SSWindowClosingAddons specificThe session store will stop tracking this window.
SSTabClosingAddons specificThe session store will stop tracking this tab.
SSTabRestoringAddons specificA tab is about to be restored.
SSTabRestoredAddons specificA tab has been restored.
SSWindowStateReadyAddons specificA window state has switched to "ready".
SSWindowStateBusyAddons specificA window state has switched to "busy".
tabviewsearchenabledAddons specificThe search feature of Panorama has been activated
tabviewsearchdisabledAddons specificThe search feature of Panorama has been deactivated
tabviewframeinitializedAddons specificThe frame container of Panorama has been initialized
tabviewshownAddons specificThe Panorama tab has been shown
tabviewhiddenAddons specificThe Panorama tab has been hidden
TabOpenAddons specificA tab has been opened.
TabCloseAddons specificA tab has been closed.
TabSelectAddons specificA tab has been selected.
TabShowAddons specificA tab has been shown.
TabHideAddons specificA tab has been hidden.
TabPinnedAddons specificA tab has been pinned.
TabUnpinnedAddons specificA tab has been unpinned.
- -

Developer tool-specific events

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Event NameEvent TypeSpecificationFired when...
CssRuleViewRefresheddevtools specificThe "Rules" view of the style inspector has been updated.
CssRuleViewChangeddevtools specificThe "Rules" view of the style inspector has been changed.
CssRuleViewCSSLinkClickeddevtools specificA link to a CSS file has been clicked in the "Rules" view of the style inspector.
+Eventos Dom (Dom Events) são utilizados para notificar o código de novidades durante a navegação do usuário. Cada evento é representado por um objeto que é baseado na interface {{domxref("Event")}}, e pode ter campos customizados adicionados e/ou funções usadas para obter informações adicionais sobre o que aconteceu. Eventos podem representar desde interações básicas do usuário (cliques, rolagem da página...) até notificações automáticas de novidades no DOM. -

Categories

+Esse artigo apresenta uma lista de eventos que podem ser enviados; alguns são padrões definidos em especificações oficiais, enquanto outros são eventos utilizados internamente por navegadores específicos; por exemplo, eventos específicos da Mozilla são organizados de modo que plugins e complementos podem usá-los para interagir com o navegador. -

Animation events

+## Categorias comuns -

{{event("animationend")}}, {{event("animationiteration")}}, {{event("animationstart")}}, {{event("beginEvent")}}, {{event("endEvent")}}, {{event("repeatEvent")}}

+### Recursos -

Battery events

+| Nome do evento | Momento do disparo | +| -------------------------------- | -------------------------------------------------------------------------------------------- | +| {{Event("cached")}} | Os recursos listados no manifesto foram baixados, e a aplicação ja está armazenada em cache. | +| {{Event("error")}} | Falha no carregamento do recurso. | +| {{Event("abort")}} | O carregamento do recurso foi abortado | +| {{Event("load")}} | O recurso e suas dependências foram carregadas | +| {{Event("beforeunload")}} | Os recursos da página que estavam sendo baixados estão prestes a ser cancelados. | +| {{Event("unload")}} | O documento ou suas dependências estão sendo canceladas. | -

{{event("chargingchange")}} {{event("chargingtimechange")}}, {{event("dischargingtimechange")}} {{event("levelchange")}}

+### Rede -

Call events

+| Nome do evento | Momento do disparo | +| ---------------------------- | ---------------------------------- | +| {{Event("online")}} | O navegador está conectado à rede. | +| {{Event("offline")}} | O navegador perdeu acesso à rede | + +### Foco + +| Nome do evento | Momento do disparo | +| ------------------------ | ------------------------------------------------ | +| {{Event("focus")}} | O elemento recebeu o foco (`False `para Bubbles) | +| {{Event("blur")}} | O elemento perdeu o foco (`False `para Bubbles) | + +### WebSocket + +| Nome do evento | Momento do disparo | +| --------------------------------------------------------------- | ------------------------------------------------------------------------------ | +| [`open`](/en-US/docs/Web/Reference/Events/open_websocket) | Conexão WebSocket estabelecida | +| [`message`](/en-US/docs/Web/Reference/Events/message_websocket) | Mensagem recebida através do WebSocket | +| {{Event("error")}} | A conexão WebSocket foi encerrada, com erro na transmissão / recepção de dados | +| [`close`](/en-US/docs/Web/Reference/Events/close_websocket) | Conexão encerrada | + +### Histórico de sessão + +| Nome do evento | Momento do disparo | +| ---------------------------- | ----------------------------------------------------------------------------------- | +| {{Event("pagehide")}} | Quando o documento está para ser fechado e guardado no cache | +| {{Event("pageshow")}} | Quando o documento é carregado pela primeira vez | +| {{Event("popstate")}} | Quando o navegador carrega uma nova página ou restaura um estado salvo com History. | + +### Animações CSS + +| Nome do evento | Momento do disparo | +| ---------------------------------------- | -------------------- | +| {{Event("animationstart")}} | A animação começou | +| {{Event("animationend")}} | A animação acabou | +| {{Event("animationiteration")}} | A animação se repete | + +### Transição CSS + +| Nome do evento | Momento do disparo | +| ---------------------------------------- | -------------------------------------------------- | +| {{Event("transitionstart")}} | A transição CSS começou (depois de algum delay) | +| {{Event("transitioncancel")}} | A transição CSS foi cancelada | +| {{Event("transitionend")}} | A transição CSS acabou | +| {{Event("transitionrun")}} | A transição CSS começou (antes de qualquer delay). | + +### Formulários + +| Nome do evento | Momento do disparo | +| ------------------------ | --------------------------- | +| {{Event("reset")}} | Botão de reset pressionado | +| {{Event("submit")}} | Botão de submit pressionado | + +### Impressão + +| Nome do evento | Momento do disparo | +| -------------------------------- | ------------------------------------------ | +| {{Event("beforeprint")}} | Caixa de diálogo de impressão está aberta | +| {{Event("afterprint")}} | Caixa de diálogo de impressão está fechada | + +### Composição de texto + +| Nome do evento | Momento do disparo | +| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| {{Event("compositionstart")}} | A composição de texto está preparada (semelhante ao keydown para uma entrada de teclado, mas funciona com outras entradas, como reconhecimento de fala). | +| {{Event("compositionupdate")}} | Um caracter foi adicionado à trecho de texto que está sendo escrito | +| {{Event("compositionend")}} | A composição de texto foi finalizada, ou cancelada. | + +### Tela + +| Nome do evento | Momento do disparo | +| ---------------------------------------- | --------------------------------------------------------------------------------------------- | +| {{Event("fullscreenchange")}} | Um elemento alternou o modo de visualização para fullscreeen ou normal | +| {{Event("fullscreenerror")}} | Não foi possível alternar para o modo fullscreen por problemas técnicos ou falta de permissão | +| {{Event("resize")}} | A tela foi redimensionada | +| {{Event("scroll")}} | A tela foi rolada (movimento de scroll) | + +### Área de transferência + +| Nome do evento | Momento do disparo | +| ------------------------ | -------------------------------------------------------------- | +| {{Event("cut")}} | A seleção foi recortada e copiada para a área de transferência | +| {{Event("copy")}} | A seleção foi copiada para a área de transferência | +| {{Event("paste")}} | O item que estava na área de transferência foi colado | + +### Teclado + +| Nome do evento | Momento do disparo | +| ---------------------------- | -------------------------------------------------------------------------------- | +| {{Event("keydown")}} | Qualquer tecla foi pressionada | +| {{Event("keypress")}} | Qualquer tecla, com exceção de Shift, Fn e Caps Lock está pressionada (segurada) | +| {{Event("keyup")}} | A tecla foi solta | + +### Mouse + +| Nome do evento | Momento do disparo | +| ---------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| {{Event("auxclick")}} | Um botão, ou dispositivo apontador (não primário) do dispositivo foi clicado e solto de um elemento. | +| {{Event("click")}} | Um botão, ou dispositivo apontador (QUALQUER, mas em breve será apenas primário) foi clicado e solto. | +| {{Event("contextmenu")}} | O botão direito do mouse foi clicado (antes do menu de contexto aparecer) | +| {{Event("dblclick")}} | Um elemento foi clicado duas vezes em um intervalo de tempo curto | +| {{Event("mousedown")}} | O mouse, ou dispositivo apontador está pressionando um elemento | +| {{Event("mouseenter")}} | O mouse, ou dispositivo apontador está acima de um elemento que tem um listener ativo | +| {{Event("mouseleave")}} | O mouse, ou dispositivo apontador foi removido do elemento com um listener | +| {{Event("mousemove")}} | O mouse está se movendo enquanto está acima de um elemento com listener | +| {{Event("mouseover")}} | O mouse foi movido para um elemento com um listener, ou em um de seus filhos | +| {{Event("mouseout")}} | O mouse foi removido do elemento, ou de algum filho contendo um listener | +| {{Event("mouseup")}} | O botão do mouse ou dispositivo foi solto | +| {{Event("pointerlockchange")}} | O botão foi bloqueado ou liberado | +| {{Event("pointerlockerror")}} | Não foi possível bloquear o dispositivo por motivo técnico ou de permissão | +| {{Event("select")}} | Algum texto está sendo selecionado | +| {{Event("wheel")}} | Foi detectada rotação no scroll do mouse | + +### Arrastar e soltar + +| Nome do evento | Momento do disparo | +| ---------------------------- | ---------------------------------------------------------------------------------------- | +| {{Event("drag")}} | Um elemento ou uma seleção de texto está sendo arrastado. | +| {{Event("dragend")}} | Uma operação de arrastar foi abortada (Por soltar o botão do mouse, ou apertando o Esc). | +| {{Event("dragenter")}} | Um elemento ou texto selecionado foi arrastado para um local de destino válido | +| {{Event("dragstart")}} | Uma operação de arrastar foi iniciada | +| {{Event("dragleave")}} | Um elemento ou texto selecionado foi arrastado para fora de um local de destino válido | +| {{Event("dragover")}} | Um elemento ou uma seleção de texto está sendo arrastado em uma área de destino válida. | +| {{Event("drop")}} | Um elemento ou uma seleção de texto foi solto em um destino válido. | + +### Mídia + +| Nome do evento | Momento do disparo | +| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| {{Event("audioprocess")}} | A entrada do buffer de {{DOMxRef("ScriptProcessorNode")}} está pronta para ser processada | +| {{Event("canplay")}} | O navegador pode reproduzir o arquivo, mas estima que não haverá dados suficientes para reproduzir o arquivo sem interrupções para recarregar o buffer. | +| {{Event("canplaythrough")}} | O navegador estima que poderá reproduzir o arquivo sem interrupções até o final. | +| {{Event("complete")}} | A renderização de {{DOMxRef("OfflineAudioContext")}} foi finalizada. | +| {{Event("durationchange")}} | O atributo `duration` foi atualizado. | +| {{Event("emptied")}} | Ausencia de conteúdo. Por exemplo, este evento é enviado se a mídia foi carregada (ou parcialmente) e o método [`load()`](/en-US/docs/XPCOM_Interface_Reference/NsIDOMHTMLMediaElement) foi chamado para recarregar o conteúdo. | +| {{Event("ended")}} | A reprodução foi finalizada devido ao fim do conteúdo | +| {{Event("loadeddata")}} | O primeiro frame de mídia foi carregado. | +| {{Event("loadedmetadata")}} | Os metadados foram carregados. | +| {{Event("pause")}} | A reprodução foi pausada. | +| {{Event("play")}} | A reprodução foi iniciada. | +| {{Event("playing")}} | A reprodução está pronta para iniciar depois de ser pausada, ou atrasada devido a falta de dados. | +| {{Event("ratechange")}} | A taxa de reprodução foi alterada. | +| {{Event("seeked")}} | Operação de busca finalizada. | +| {{Event("seeking")}} | Operação de busca iniciada. | +| {{Event("stalled")}} | The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. | +| {{Event("suspend")}} | Media data loading has been suspended. | +| {{Event("timeupdate")}} | The time indicated by the `currentTime` attribute has been updated. | +| {{Event("volumechange")}} | The volume has changed. | +| {{Event("waiting")}} | Playback has stopped because of a temporary lack of data. | + +### Progresso + +| Nome do evento | Momento do disparo | +| ------------------------------------------------------------------- | --------------------------------------------------------------------- | +| [`abort`]() | O progresso terminou (com sucesso). | +| {{Event("error")}} | Erro no progresso. | +| [`load`]() | O progresso foi bem sucedido. | +| {{Event("loadend")}} | O progresso foi interrompido (devido a 'error', 'abort' ou load) | +| {{Event("loadstart")}} | O progresso iniciou | +| {{Event("progress")}} | Em progresso | +| {{Event("timeout")}} | O progresso foi finalizado pois o tempo pré determinado foi expirado. | + +### Armazenamento + +{{Event("change")}} (see [Non-standard events](#non-standard_events)) +{{Event("storage")}} + +### Atualização + +{{Event("checking")}} +{{Event("downloading")}} +{{Event("error")}} +{{Event("noupdate")}} +{{Event("obsolete")}} +{{Event("updateready")}} + +### Mudança de valores + +{{Event("broadcast")}} +{{Event("CheckboxStateChange")}} +{{Event("hashchange")}} +{{Event("input")}} +{{Event("RadioStateChange")}} +{{Event("readystatechange")}} +{{Event("ValueChange")}} + +### Sem categoria + +{{Event("invalid")}} +{{Event("localized")}} +[`message`](/en-US/docs/Web/Reference/Events/message_webworker) +[`message`](/en-US/docs/Web/Reference/Events/message_webmessaging) +[`message`](/en-US/docs/Web/Reference/Events/message_serversentevents) +[`open`](/en-US/docs/Web/Reference/Events/open_serversentevents) +{{Event("show")}} + +## Eventos pouco comuns e não padronizados + +### Eventos de busca abortáveis + +| Nome do evento | Momento do disparo | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| [`abort`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_event) | Uma requisição ao DOM foi cancelada, utilizando {{DOMxRef("AbortController.abort()")}}. | + +## Eventos padrão + +Esses eventos estão definidos nas especificações oficiais da Web, e são comum à todos o browsers. Cada evento é listado junto com a interface que representa o objeto enviado aos destinatários do evento (para que você possa encontrar informações sobre quais dados são fornecidos com cada evento), bem como um link para a especificação ou especificações que definem o evento. + +| Nome do Evento | Tipo do Evento | Specification | Fired when... | +| --------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| {{event("abort")}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-abort) | The loading of a resource has been aborted. | +| [`abort`]() | {{domxref("ProgressEvent")}} | [Progress](http://www.w3.org/TR/progress-events/) and [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-abort) | Progression has been terminated (not due to an error). | +| [`abort`](/en-US/docs/Web/Reference/Events/abort_indexedDB) | {{domxref("Event")}} | [IndexedDB](http://www.w3.org/TR/IndexedDB/#database-interface) | A transaction has been aborted. | +| {{event("afterprint")}}{{gecko_minversion_inline("6")}} | {{domxref("Event")}} | [HTML5](http://www.w3.org/TR/html5/webappapis.html#printing) | The associated document has started printing or the print preview has been closed. | +| {{event("animationend")}} | {{domxref("AnimationEvent")}} | [CSS Animations](http://www.w3.org/TR/css3-animations/#animation-events) | A [CSS animation](/pt-BR/docs/CSS/CSS_animations) has completed. | +| {{event("animationiteration")}} | {{domxref("AnimationEvent")}} | [CSS Animations](http://www.w3.org/TR/css3-animations/#animation-events) | A [CSS animation](/pt-BR/docs/CSS/CSS_animations) is repeated. | +| {{event("animationstart")}} | {{domxref("AnimationEvent")}} | [CSS Animations](http://www.w3.org/TR/css3-animations/#animation-events) | A [CSS animation](/pt-BR/docs/CSS/CSS_animations) has started. | +| {{event("audioprocess")}} | {{domxref("AudioProcessingEvent")}} | {{SpecName('Web Audio API', '#AudioProcessingEvent', 'audioprocess')}} | The input buffer of a {{domxref("ScriptProcessorNode")}} is ready to be processed. | +| {{event("beforeprint")}} {{gecko_minversion_inline("6")}} | {{domxref("Event")}} | [HTML5](http://www.w3.org/TR/html5/webappapis.html#printing) | The associated document is about to be printed or previewed for printing. | +| {{event("beforeunload")}} | {{domxref("BeforeUnloadEvent")}} | [HTML5](http://www.w3.org/TR/html5/browsers.html#unloading-documents) | | +| {{event("beginEvent")}} | {{domxref("TimeEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | A [SMIL](/pt-BR/docs/SVG/SVG_animation_with_SMIL) animation element begins. | +| [`blocked`](/en-US/docs/Web/Reference/Events/blocked_indexedDB) | | [IndexedDB](http://www.w3.org/TR/IndexedDB/#request-api) | An open connection to a database is blocking a `versionchange` transaction on the same database. | +| {{event("blur")}} | {{domxref("FocusEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-blur) | An element has lost focus (does not bubble). | +| {{event("cached")}} | {{domxref("Event")}} | [Offline](http://www.w3.org/html/wg/drafts/html/master/browsers.html#offline) | The resources listed in the manifest have been downloaded, and the application is now cached. | +| {{event("canplay")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-canplay) | The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. | +| {{event("canplaythrough")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-canplaythrough) | The user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content. | +| {{event("change")}} | {{domxref("Event")}} | [DOM L2](http://www.w3.org/TR/DOM-Level-2-Events/events.html), [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#event-input-change) | An element loses focus and its value changed since gaining focus. | +| {{event("chargingchange")}} | {{domxref("Event")}} | [Battery status](https://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html) | The battery begins or stops charging. | +| {{event("chargingtimechange")}} | {{domxref("Event")}} | [Battery status](https://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html) | The `chargingTime` attribute has been updated. | +| {{event("checking")}} | {{domxref("Event")}} | [Offline](http://www.w3.org/html/wg/drafts/html/master/browsers.html#offline) | The user agent is checking for an update, or attempting to download the cache manifest for the first time. | +| {{event("click")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-click) | A pointing device button has been pressed and released on an element. | +| [`close`](/en-US/docs/Web/Reference/Events/close_websocket) | {{domxref("Event")}} | [WebSocket](http://www.w3.org/TR/websockets/) | A WebSocket connection has been closed. | +| {{event("compassneedscalibration")}} | {{domxref("SensorEvent")}} | [Orientation](http://www.w3.org/TR/orientation-event/#compassneedscalibration) | The compass used to obtain orientation data is in need of calibration. | +| [`complete`](/en-US/docs/Web/Reference/Events/complete_indexedDB) | | [IndexedDB](http://www.w3.org/TR/IndexedDB/#transaction) | | +| {{event("complete")}} | {{domxref("OfflineAudioCompletionEvent")}} | {{SpecName('Web Audio API', '#OfflineAudioCompletionEvent-section', 'OfflineAudioCompletionEvent')}} | The rendering of an {{domxref("OfflineAudioContext")}} is terminated. | +| {{event("compositionend")}}{{gecko_minversion_inline("9")}} | {{domxref("CompositionEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-compositionend) | The composition of a passage of text has been completed or canceled. | +| {{event("compositionstart")}}{{gecko_minversion_inline("9")}} | {{domxref("CompositionEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-compositionstart) | The composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition). | +| {{event("compositionupdate")}}{{gecko_minversion_inline("9")}} | {{domxref("CompositionEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-compositionupdate) | A character is added to a passage of text being composed. | +| {{event("contextmenu")}} | {{domxref("MouseEvent")}} | [HTML5](https://html.spec.whatwg.org/multipage/forms.html#context-menus) | The right button of the mouse is clicked (before the context menu is displayed). | +| {{event("copy")}} | {{domxref("ClipboardEvent")}} | [Clipboard](http://www.w3.org/TR/clipboard-apis/#copy-event) | The text selection has been added to the clipboard. | +| {{event("cut")}} | {{domxref("ClipboardEvent")}} | [Clipboard](http://www.w3.org/TR/clipboard-apis/#cut-event) | The text selection has been removed from the document and added to the clipboard. | +| {{event("dblclick")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-dblclick) | A pointing device button is clicked twice on an element. | +| {{event("devicelight")}} | {{domxref("DeviceLightEvent")}} | [Ambient Light Events](http://dvcs.w3.org/hg/dap/raw-file/tip/light/Overview.html "The definition of 'Ambient Light Events' in that specification.") | Fresh data is available from a light sensor. | +| {{event("devicemotion")}} | {{domxref("DeviceMotionEvent")}} | [Device Orientation Events](http://dev.w3.org/geo/api/spec-source-orientation.html "The 'Device Orientation Events' specification") | Fresh data is available from a motion sensor. | +| {{event("deviceorientation")}} | {{domxref("DeviceOrientationEvent")}} | [Device Orientation Events](http://dev.w3.org/geo/api/spec-source-orientation.html "The 'Device Orientation Events' specification") | Fresh data is available from an orientation sensor. | +| {{event("deviceproximity")}} | {{domxref("DeviceProximityEvent")}} | [Proximity Events](http://dvcs.w3.org/hg/dap/raw-file/tip/proximity/Overview.html "The definition of 'Proximity Events' in that specification.") | Fresh data is available from a proximity sensor (indicates an approximated distance between the device and a nearby object). | +| {{event("dischargingtimechange")}} | {{domxref("Event")}} | [Battery status](https://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html) | The `dischargingTime` attribute has been updated. | +| `DOMActivate` {{deprecated_inline}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMActivate) | A button, link or state changing element is activated (use {{event("click")}} instead). | +| [`DOMAttributeNameChanged`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationNameEvent")}} | [DOM L3](http://www.w3.org/TR/2011/WD-DOM-Level-3-Events-20110531/#event-type-DOMAttributeNameChanged) Removed | The name of an attribute changed (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| [`DOMAttrModified`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMAttrModified) | The value of an attribute has been modified (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| [`DOMCharacterDataModified`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMCharacterDataModified) | A text or another [CharacterData](/pt-BR/docs/DOM/CharacterData) has changed (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| {{event("DOMContentLoaded")}} | {{domxref("Event")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#the-end) | The document has finished loading (but not its dependent resources). | +| [`DOMElementNameChanged`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationNameEvent")}} | [DOM L3](http://www.w3.org/TR/2011/WD-DOM-Level-3-Events-20110531/#event-type-DOMElementNameChanged) Removed | The name of an element changed (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| `DOMFocusIn` {{deprecated_inline}} | {{domxref("FocusEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMFocusIn) | An element has received focus (use {{event("focus")}} or {{event("focusin")}} instead). | +| `DOMFocusOut` {{deprecated_inline}} | {{domxref("FocusEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMFocusOut) | An element has lost focus (use {{event("blur")}} or {{event("focusout")}} instead). | +| [`DOMNodeInserted`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMNodeInserted) | A node has been added as a child of another node (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| [`DOMNodeInsertedIntoDocument`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMNodeInsertedIntoDocument) | A node has been inserted into the document (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| [`DOMNodeRemoved`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMNodeRemoved) | A node has been removed from its parent node (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| [`DOMNodeRemovedFromDocument`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMNodeRemovedFromDocument) | A node has been removed from the document (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| [`DOMSubtreeModified`](/en-US/docs/DOM/Mutation_events) {{deprecated_inline}} | {{domxref("MutationEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMSubtreeModified) | A change happened in the document (use [mutation observers](/pt-BR/docs/DOM/MutationObserver) instead). | +| {{event("downloading")}} | {{domxref("Event")}} | [Offline](http://www.w3.org/html/wg/drafts/html/master/browsers.html#offline) | The user agent has found an update and is fetching it, or is downloading the resources listed by the cache manifest for the first time. | +| {{event("drag")}} | {{domxref("DragEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#event-drag) | An element or text selection is being dragged (every 350ms). | +| {{event("dragend")}} | {{domxref("DragEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#event-dragend) | A drag operation is being ended (by releasing a mouse button or hitting the escape key). | +| {{event("dragenter")}} | {{domxref("DragEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#event-dragenter) | A dragged element or text selection enters a valid drop target. | +| {{event("dragleave")}} | {{domxref("DragEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#event-dragleave) | A dragged element or text selection leaves a valid drop target. | +| {{event("dragover")}} | {{domxref("DragEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#event-dragover) | An element or text selection is being dragged over a valid drop target (every 350ms). | +| {{event("dragstart")}} | {{domxref("DragEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#event-dragstart) | The user starts dragging an element or text selection. | +| {{event("drop")}} | {{domxref("DragEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#event-drop) | An element is dropped on a valid drop target. | +| {{event("durationchange")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-durationchange) | The `duration` attribute has been updated. | +| {{event("emptied")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-emptied) | The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the [`load()`](/pt-BR/docs/XPCOM_Interface_Reference/NsIDOMHTMLMediaElement) method is called to reload it. | +| {{event("ended")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-ended) | Playback has stopped because the end of the media was reached. | +| {{event("ended_(Web_Audio)", "ended")}} | {{domxref("Event")}} | {{SpecName("Web Audio API")}} | | +| {{event("endEvent")}} | {{domxref("TimeEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | A [SMIL](/pt-BR/docs/SVG/SVG_animation_with_SMIL) animation element ends. | +| {{event("error")}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-error) | A resource failed to load. | +| {{event("error")}} | {{domxref("ProgressEvent")}} | [Progress](http://www.w3.org/TR/progress-events/) and [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-error) | Progression has failed. | +| {{event("error")}} | {{domxref("Event")}} | [Offline](http://www.w3.org/html/wg/drafts/html/master/browsers.html#offline) | An error occurred while downloading the cache manifest or updating the content of the application. | +| {{event("error")}} | {{domxref("Event")}} | [WebSocket](http://www.w3.org/TR/websockets/) | A WebSocket connection has been closed with prejudice (some data couldn't be sent for example). | +| {{event("error")}} | {{domxref("Event")}} | [Server Sent Events](http://dev.w3.org/html5/eventsource/) | An event source connection has been failed. | +| {{event("error")}} | {{domxref("Event")}} | [IndexedDB](http://www.w3.org/TR/IndexedDB/#request-api) | A request caused an error and failed. | +| {{event("focus")}} | {{domxref("FocusEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-focus) | An element has received focus (does not bubble). | +| {{event("focusin")}} | {{domxref("FocusEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-focusIn) | An element is about to receive focus (bubbles). | +| {{event("focusout")}} | {{domxref("FocusEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-focusout) | An element is about to lose focus (bubbles). | +| {{event("fullscreenchange")}} | {{domxref("Event")}} | [Full Screen](https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#api) | An element was turned to fullscreen mode or back to normal mode. | +| {{event("fullscreenerror")}} | {{domxref("Event")}} | [Full Screen](https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#api) | It was impossible to switch to fullscreen mode for technical reasons or because the permission was denied. | +| {{event("gamepadconnected")}} | {{domxref("GamepadEvent")}} | [Gamepad](http://www.w3.org/TR/gamepad/#the-gamepadconnected-event) | A gamepad has been connected. | +| {{event("gamepaddisconnected")}} | {{domxref("GamepadEvent")}} | [Gamepad](http://www.w3.org/TR/gamepad/#the-gamepaddisconnected-event) | A gamepad has been disconnected. | +| {{event("hashchange")}} | {{domxref("HashChangeEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-hashchange) | The fragment identifier of the URL has changed (the part of the URL after the #). | +| {{event("input")}} | {{domxref("Event")}} | [HTML5](http://www.w3.org/TR/html5/forms.html#common-event-behaviors) | The value of an element changes or the content of an element with the attribute [contenteditable](/pt-BR/docs/DOM/Element.contentEditable) is modified. | +| {{event("invalid")}} | {{domxref("Event")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#constraint-validation) | A submittable element has been checked and doesn't satisfy its constraints. | +| {{event("keydown")}} | {{domxref("KeyboardEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-keydown) | A key is pressed down. | +| {{event("keypress")}} | {{domxref("KeyboardEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-keypress) | A key is pressed down and that key normally produces a character value (use input instead). | +| {{event("keyup")}} | {{domxref("KeyboardEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-keyup) | A key is released. | +| {{event("languagechange")}} | {{domxref("Event")}} | {{ SpecName('HTML5.1', '#dom-navigator-languages', 'NavigatorLanguage.languages') }} | | +| {{event("levelchange")}} | {{domxref("Event")}} | [Battery status](https://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html) | The `level` attribute has been updated. | +| {{event("load")}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-load) | A resource and its dependent resources have finished loading. | +| [`load`]() | {{domxref("ProgressEvent")}} | [Progress](http://www.w3.org/TR/progress-events/) and [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-load) | Progression has been successful. | +| {{event("loadeddata")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-loadeddata) | The first frame of the media has finished loading. | +| {{event("loadedmetadata")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-loadedmetadata) | The metadata has been loaded. | +| {{event("loadend")}} | {{domxref("ProgressEvent")}} | [Progress](http://www.w3.org/TR/progress-events/) and [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-loadend) | Progress has stopped (after "error", "abort" or "load" have been dispatched). | +| {{event("loadstart")}} | {{domxref("ProgressEvent")}} | [Progress ](http://www.w3.org/TR/progress-events/)and [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-loadstart) | Progress has begun. | +| [`message`](/en-US/docs/Web/Reference/Events/message_websocket) | {{domxref("MessageEvent")}} | [WebSocket](http://www.w3.org/TR/websockets/) | A message is received through a WebSocket. | +| [`message`](/en-US/docs/Web/Reference/Events/message_webworker) | {{domxref("MessageEvent")}} | [Web Workers](http://www.w3.org/TR/workers/#communicating-with-a-dedicated-worker) | A message is received from a Web Worker. | +| [`message`](/en-US/docs/Web/Reference/Events/message_webmessaging) | {{domxref("MessageEvent")}} | [Web Messaging](http://www.w3.org/TR/webmessaging/) | A message is received from a child (i)frame or a parent window. | +| [`message`](/en-US/docs/Web/Reference/Events/message_serversentevents) | {{domxref("MessageEvent")}} | [Server Sent Events](http://dev.w3.org/html5/eventsource/) | A message is received through an event source. | +| {{event("mousedown")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mousedown) | A pointing device button (usually a mouse) is pressed on an element. | +| {{event("mouseenter")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mouseenter) | A pointing device is moved onto the element that has the listener attached. | +| {{event("mouseleave")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mouseleave) | A pointing device is moved off the element that has the listener attached. | +| {{event("mousemove")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mousemove) | A pointing device is moved over an element. | +| {{event("mouseout")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mouseout) | A pointing device is moved off the element that has the listener attached or off one of its children. | +| {{event("mouseover")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mouseover) | A pointing device is moved onto the element that has the listener attached or onto one of its children. | +| {{event("mouseup")}} | {{domxref("MouseEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mouseup) | A pointing device button is released over an element. | +| {{event("noupdate")}} | {{domxref("Event")}} | [Offline](http://www.w3.org/html/wg/drafts/html/master/browsers.html#offline) | The manifest hadn't changed. | +| {{event("obsolete")}} | {{domxref("Event")}} | [Offline](http://www.w3.org/html/wg/drafts/html/master/browsers.html#offline) | The manifest was found to have become a 404 or 410 page, so the application cache is being deleted. | +| {{event("offline")}} | {{domxref("Event")}} | [HTML5 offline](http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#event-offline) | The browser has lost access to the network. | +| {{event("online")}} | {{domxref("Event")}} | [HTML5 offline](http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#event-online) | The browser has gained access to the network (but particular websites might be unreachable). | +| [`open`](/en-US/docs/Web/Reference/Events/open_websocket) | {{domxref("Event")}} | [WebSocket](http://www.w3.org/TR/websockets/) | A WebSocket connection has been established. | +| [`open`](/en-US/docs/Web/Reference/Events/open_serversentevents) | {{domxref("Event")}} | [Server Sent Events](http://dev.w3.org/html5/eventsource/) | An event source connection has been established. | +| {{event("orientationchange")}} | {{domxref("Event")}} | [Screen Orientation](http://www.w3.org/TR/screen-orientation/) | The orientation of the device (portrait/landscape) has changed | +| {{event("pagehide")}} | {{domxref("PageTransitionEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-pagehide) | A session history entry is being traversed from. | +| {{event("pageshow")}} | {{domxref("PageTransitionEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-pageshow) | A session history entry is being traversed to. | +| {{event("paste")}} | {{domxref("ClipboardEvent")}} | [Clipboard](http://www.w3.org/TR/clipboard-apis/#paste-event) | Data has been transfered from the system clipboard to the document. | +| {{event("pause")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-pause) | Playback has been paused. | +| {{event("pointerlockchange")}} | {{domxref("Event")}} | [Pointer Lock](http://www.w3.org/TR/pointerlock/#pointerlockchange-and-pointerlockerror-events) | The pointer was locked or released. | +| {{event("pointerlockerror")}} | {{domxref("Event")}} | [Pointer Lock](http://www.w3.org/TR/pointerlock/#pointerlockchange-and-pointerlockerror-events) | It was impossible to lock the pointer for technical reasons or because the permission was denied. | +| {{event("play")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-play) | Playback has begun. | +| {{event("playing")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing) | Playback is ready to start after having been paused or delayed due to lack of data. | +| {{event("popstate")}} | {{domxref("PopStateEvent")}} | [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-popstate) | A session history entry is being navigated to (in certain cases). | +| {{event("progress")}} | {{domxref("ProgressEvent")}} | [Progress](http://www.w3.org/TR/progress-events/) and [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-progress) | In progress. | +| [`progress`]() | {{domxref("ProgressEvent")}} | [Offline](http://www.w3.org/html/wg/drafts/html/master/browsers.html#offline) | The user agent is downloading resources listed by the manifest. | +| {{event("ratechange")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-ratechange) | The playback rate has changed. | +| {{event("readystatechange")}} | {{domxref("Event")}} | HTML5 and [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-readystatechange) | The readyState attribute of a document has changed. | +| {{event("repeatEvent")}} | {{domxref("TimeEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | A [SMIL](/pt-BR/docs/SVG/SVG_animation_with_SMIL) animation element is repeated. | +| {{event("reset")}} | {{domxref("Event")}} | [DOM L2](http://www.w3.org/TR/DOM-Level-2-Events/events.html), [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#form-submission-0#resetting-a-form) | A form is reset. | +| {{event("resize")}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-resize) | The document view has been resized. | +| {{event("scroll")}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-scroll) | The document view or an element has been scrolled. | +| {{event("seeked")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-seeked) | A _seek_ operation completed. | +| {{event("seeking")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-seeking) | A _seek_ operation began. | +| {{event("select")}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-select) | Some text is being selected. | +| {{event("show")}} | {{domxref("MouseEvent")}} | [HTML5](http://www.w3.org/TR/html5/interactive-elements.html#context-menus) | A contextmenu event was fired on/bubbled to an element that has a [contextmenu](/pt-BR/docs/DOM/element.contextmenu) attribute | +| {{event("stalled")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-stalled) | The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. | +| {{event("storage")}} | {{domxref("StorageEvent")}} | [Web Storage](http://www.w3.org/TR/webstorage/#the-storage-event) | A storage area ([localStorage](/pt-BR/docs/DOM/Storage#localStorage) or [sessionStorage](/pt-BR/docs/DOM/Storage#sessionStorage)) has changed. | +| {{event("submit")}} | {{domxref("Event")}} | [DOM L2](http://www.w3.org/TR/DOM-Level-2-Events/events.html), [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#form-submission-algorithm) | A form is submitted. | +| [`success`](/en-US/docs/Web/Reference/Events/success_indexedDB) | {{domxref("Event")}} | [IndexedDB](http://www.w3.org/TR/IndexedDB/#request-api) | A request successfully completed. | +| {{event("suspend")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-suspend) | Media data loading has been suspended. | +| {{event("SVGAbort")}} | {{domxref("SVGEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | Page loading has been stopped before the [SVG](/pt-BR/docs/SVG) was loaded. | +| {{event("SVGError")}} | {{domxref("SVGEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | An error has occurred before the [SVG](/pt-BR/docs/SVG) was loaded. | +| {{event("SVGLoad")}} | {{domxref("SVGEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | An [SVG](/pt-BR/docs/SVG) document has been loaded and parsed. | +| {{event("SVGResize")}} | {{domxref("SVGEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | An [SVG](/pt-BR/docs/SVG) document is being resized. | +| {{event("SVGScroll")}} | {{domxref("SVGEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | An [SVG](/pt-BR/docs/SVG) document is being scrolled. | +| {{event("SVGUnload")}} | {{domxref("SVGEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | An [SVG](/pt-BR/docs/SVG) document has been removed from a window or frame. | +| {{event("SVGZoom")}} | {{domxref("SVGZoomEvent")}} | [SVG](http://www.w3.org/TR/SVG/interact.html#SVGEvents) | An [SVG](/pt-BR/docs/SVG) document is being zoomed. | +| {{event("timeout")}} | {{domxref("ProgressEvent")}} | [XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/#event-xhr-timeout) | | +| {{event("timeupdate")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-timeupdate) | The time indicated by the `currentTime` attribute has been updated. | +| {{event("touchcancel")}} | {{domxref("TouchEvent")}} | [Touch Events](http://www.w3.org/TR/touch-events/) | A touch point has been disrupted in an implementation-specific manners (too many touch points for example). | +| {{event("touchend")}} | {{domxref("TouchEvent")}} | [Touch Events](http://www.w3.org/TR/touch-events/#the-touchend-event) | A touch point is removed from the touch surface. | +| {{event("touchenter")}} | {{domxref("TouchEvent")}} | [Touch Events](http://www.w3.org/TR/touch-events/) Removed | A touch point is moved onto the interactive area of an element. | +| {{event("touchleave")}} | {{domxref("TouchEvent")}} | [Touch Events](http://www.w3.org/TR/touch-events/) Removed | A touch point is moved off the interactive area of an element. | +| {{event("touchmove")}} | {{domxref("TouchEvent")}} | [Touch Events](http://www.w3.org/TR/touch-events/#the-touchmove-event) | A touch point is moved along the touch surface. | +| {{event("touchstart")}} | {{domxref("TouchEvent")}} | [Touch Events](http://www.w3.org/TR/touch-events/#the-touchstart---------event) | A touch point is placed on the touch surface. | +| {{event("transitionend")}} | {{domxref("TransitionEvent")}} | [CSS Transitions](http://www.w3.org/TR/css3-transitions/#transition-events) | A [CSS transition](/pt-BR/docs/CSS/CSS_transitions) has completed. | +| {{event("unload")}} | {{domxref("UIEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-unload) | The document or a dependent resource is being unloaded. | +| {{event("updateready")}} | {{domxref("Event")}} | [Offline](http://dev.w3.org/html5/spec/offline.html) | The resources listed in the manifest have been newly redownloaded, and the script can use `swapCache()` to switch to the new cache. | +| [`upgradeneeded`](/en-US/docs/Web/Reference/Events/upgradeneeded_indexedDB) | | [IndexedDB](http://www.w3.org/TR/IndexedDB/#request-api) | An attempt was made to open a database with a version number higher than its current version. A `versionchange` transaction has been created. | +| {{event("userproximity")}} | {{domxref("SensorEvent")}} | [Sensor](https://dvcs.w3.org/hg/dap/raw-file/tip/proximity/Overview.html) | Fresh data is available from a proximity sensor (indicates whether the nearby object is `near` the device or not). | +| [`versionchange`](/en-US/docs/Web/Reference/Events/versionchange_indexedDB) | | [IndexedDB](http://www.w3.org/TR/IndexedDB/#database-interface) | A `versionchange` transaction completed. | +| {{event("visibilitychange")}} | {{domxref("Event")}} | [Page visibility](http://www.w3.org/TR/page-visibility/#sec-visibilitychange-event) | The content of a tab has become visible or has been hidden. | +| {{event("volumechange")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-volumechange) | The volume has changed. | +| {{event("waiting")}} | {{domxref("Event")}} | [HTML5 media](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-waiting) | Playback has stopped because of a temporary lack of data. | +| {{event("wheel")}}{{gecko_minversion_inline("17")}} | {{domxref("WheelEvent")}} | [DOM L3](http://www.w3.org/TR/DOM-Level-3-Events/#event-type-wheel) | A wheel button of a pointing device is rotated in any direction. | + +## Eventos não padronizados + +| Nome do Evento | Tipo do Evento | Specification | Fired when... | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| {{event("afterscriptexecute")}} | {{domxref("Event")}} | _Mozilla Specific_ | A script has been executed. | +| {{event("beforescriptexecute")}} | {{domxref("Event")}} | _Mozilla Specific_ | A script is about to be executed. | +| {{event("beforeinstallprompt")}} | {{domxref("Event")}} | _Chrome specific_ | A user is prompted to save a web site to a home screen on mobile. | +| {{event("cardstatechange")}} | | _Firefox OS specific_ | The {{domxref("MozMobileConnection.cardState")}} property changes value. | +| {{event("change")}} | {{domxref("DeviceStorageChangeEvent")}} | _Firefox OS specific_ | This event is triggered each time a file is created, modified or deleted on a given storage area. | +| {{event("connectionInfoUpdate")}} | | [_Firefox OS specific_](http://mxr.mozilla.org/mozilla-central/source/dom/wifi/nsIWifi.idl?rev=3e586802f478#176) | The informations about the signal strength and the link speed have been updated. | +| {{event("cfstatechange")}} | | _Firefox OS specific_ | The call forwarding state changes. | +| {{event("datachange")}} | | _Firefox OS specific_ | The {{domxref("MozMobileConnection.data")}} object changes values. | +| {{event("dataerror")}} | | _Firefox OS specific_ | The {{domxref("MozMobileConnection.data")}} object receive an error from the RIL. | +| {{event("DOMMouseScroll")}}{{deprecated_inline}} | | _Mozilla specific_ | The wheel button of a pointing device is rotated (detail attribute is a number of lines). (use {{event("wheel")}} instead) | +| `dragdrop` {{deprecated_inline}} | `DragEvent` | _Mozilla specific_ | An element is dropped (use {{event("drop")}} instead). | +| `dragexit` {{deprecated_inline}} | `DragEvent` | _Mozilla specific_ | A drag operation is being ended(use {{event("dragend")}} instead). | +| `draggesture` {{deprecated_inline}} | `DragEvent` | _Mozilla specific_ | The user starts dragging an element or text selection (use {{event("dragstart")}} instead). | +| {{event("icccardlockerror")}} | | _Firefox OS specific_ | the {{domxref("MozMobileConnection.unlockCardLock()")}} or {{domxref("MozMobileConnection.setCardLock()")}} methods fails. | +| {{event("iccinfochange")}} | | _Firefox OS specific_ | The {{domxref("MozMobileConnection.iccInfo")}} object changes. | +| {{event("localized")}} | | _[Mozilla Specific](https://github.com/fabi1cazenave/webL10n)_ | The page has been localized using data-l10n-\* attributes. | +| {{event("mousewheel")}}{{deprecated_inline}} | | [_IE invented_](http://msdn.microsoft.com/en-us/library/ie/ms536951%28v=vs.85%29.aspx) | The wheel button of a pointing device is rotated. | +| {{event("MozAudioAvailable")}} | {{domxref("Event")}} | _Mozilla specific_ | The audio buffer is full and the corresponding raw samples are available. | +| [`MozBeforeResize`](/pt-BR/docs/Web/Reference/Events/MozBeforeResize) {{obsolete_inline}} | | _Mozilla specific_ | A window is about to be resized. | +| {{event("mozbrowserclose")}} | | _Firefox OS specific_ | Sent when window\.close() is called within a browser iframe. | +| {{event("mozbrowsercontextmenu")}} | | _Firefox OS specific_ | Sent when a browser {{HTMLElement("iframe")}} try to open a context menu. | +| {{event("mozbrowsererror")}} | | _Firefox OS specific_ | Sent when an error occured while trying to load a content within a browser iframe | +| {{event("mozbrowsericonchange")}} | | _Firefox OS specific_ | Sent when the favicon of a browser iframe changes. | +| {{event("mozbrowserlocationchange")}} | | _Firefox OS specific_ | Sent when an browser iframe's location changes. | +| {{event("mozbrowserloadend")}} | | _Firefox OS specific_ | Sent when the browser iframe has finished loading all its assets. | +| {{event("mozbrowserloadstart")}} | | _Firefox OS specific_ | Sent when the browser iframe starts to load a new page. | +| {{event("mozbrowseropenwindow")}} | | _Firefox OS specific_ | Sent when {{domxref("window.open()")}} is called within a browser iframe. | +| {{event("mozbrowsersecuritychange")}} | | _Firefox OS specific_ | Sent when the SSL state changes within a browser iframe. | +| {{event("mozbrowsershowmodalprompt")}} | | _Firefox OS specific_ | Sent when {{domxref("window.alert","alert()")}}, {{domxref("window.confirm","confirm()")}} or {{domxref("window.prompt","prompt()")}} are called within a browser iframe | +| {{event("mozbrowsertitlechange")}} | | _Firefox OS specific_ | Sent when the document.title changes within a browser iframe. | +| {{event("MozGamepadButtonDown")}} | | _To be specified_ | A gamepad button is pressed down. | +| {{event("MozGamepadButtonUp")}} | | _To be specified_ | A gamepad button is released. | +| {{event("MozMousePixelScroll")}} {{deprecated_inline}} | | _Mozilla specific_ | The wheel button of a pointing device is rotated (detail attribute is a number of pixels). (use wheel instead) | +| {{event("MozOrientation")}} {{deprecated_inline}} | | _Mozilla specific_ | Fresh data is available from an orientation sensor (see deviceorientation). | +| {{event("MozScrolledAreaChanged")}} | {{domxref("UIEvent")}} | _Mozilla specific_ | The document view has been scrolled or resized. | +| {{event("moztimechange")}} | | _Mozilla specific_ | The time of the device has been changed. | +| [MozTouchDown]() {{deprecated_inline}} | | _Mozilla specific_ | A touch point is placed on the touch surface (use touchstart instead). | +| [MozTouchMove]() {{deprecated_inline}} | | _Mozilla specific_ | A touch point is moved along the touch surface (use touchmove instead). | +| [MozTouchUp]() {{deprecated_inline}} | | _Mozilla specific_ | A touch point is removed from the touch surface (use touchend instead). | +| {{event("alerting")}} | {{domxref("CallEvent")}} | _To be specified_ | The correspondent is being alerted (his/her phone is ringing). | +| {{event("busy")}} | {{domxref("CallEvent")}} | _To be specified_ | The line of the correspondent is busy. | +| {{event("callschanged")}} | {{domxref("CallEvent")}} | _To be specified_ | A call has been added or removed from the list of current calls. | +| [onconnected](/pt-BR/docs/DOM/onconnected) {{event("connected")}} | {{domxref("CallEvent")}} | _To be specified_ | A call has been connected. | +| {{event("connecting")}} | {{domxref("CallEvent")}} | _To be specified_ | A call is about to connect. | +| {{event("delivered")}} | {{domxref("SMSEvent")}} | _To be specified_ | An SMS has been successfully delivered. | +| {{event("dialing")}} | {{domxref("CallEvent")}} | _To be specified_ | The number of a correspondent has been dialed. | +| {{event("disabled")}} | | [_Firefox OS specific_](http://mxr.mozilla.org/mozilla-central/source/dom/wifi/nsIWifi.idl?rev=3e586802f478#182) | Wifi has been disabled on the device. | +| {{event("disconnected")}} | {{domxref("CallEvent")}} | _To be specified_ | A call has been disconnected. | +| {{event("disconnecting")}} | {{domxref("CallEvent")}} | _To be specified_ | A call is about to disconnect. | +| {{event("enabled")}} | | [_Firefox OS specific_](http://mxr.mozilla.org/mozilla-central/source/dom/wifi/nsIWifi.idl?rev=3e586802f478#182) | Wifi has been enabled on the device. | +| {{event("error_(Telephony)","error")}} | {{domxref("CallEvent")}} | _To be specified_ | An error occurred. | +| {{event("held")}} | {{domxref("CallEvent")}} | _To be specified_ | A call has been held. | +| {{event("holding")}} | {{domxref("CallEvent")}} | _To be specified_ | A call is about to be held. | +| {{event("incoming")}} | {{domxref("CallEvent")}} | _To be specified_ | A call is being received. | +| {{event("received")}} | {{domxref("SMSEvent")}} | _To be specified_ | An SMS has been received. | +| {{event("resuming")}} | {{domxref("CallEvent")}} | _To be specified_ | A call is about to resume. | +| {{event("sent")}} | {{domxref("SMSEvent")}} | _To be specified_ | An SMS has been sent. | +| {{event("statechange")}} | {{domxref("CallEvent")}} | _To be specified_ | The state of a call has changed. | +| {{event("statuschange")}} | | [_Firefox OS specific_](http://mxr.mozilla.org/mozilla-central/source/dom/wifi/nsIWifi.idl?rev=3e586802f478#156) | The status of the Wifi connection changed. | +| {{event("overflow")}} | {{domxref("UIEvent")}} | _Mozilla specific_ | An element has been overflowed by its content or has been rendered for the first time in this state (only works for elements styled with `overflow` != `visible`). | +| {{event("smartcard-insert")}} | | _Mozilla specific_ | A [smartcard](/pt-BR/docs/JavaScript_crypto) has been inserted. | +| {{event("smartcard-remove")}} | | _Mozilla specific_ | A [smartcard](/pt-BR/docs/JavaScript_crypto) has been removed. | +| {{event("stkcommand")}} | | _Firefox OS specific_ | The STK Proactive Command is issued from ICC. | +| {{event("stksessionend")}} | | _Firefox OS specific_ | The STK Session is terminated by ICC. | +| `text` | | _Mozilla Specific_ | A generic composition event occurred. | +| {{event("underflow")}} | {{domxref("UIEvent")}} | _Mozilla specific_ | An element is no longer overflowed by its content (only works for elements styled with `overflow` != `visible`). | +| `uploadprogress` {{deprecated_inline}} | {{domxref("ProgressEvent")}} | _Mozilla Specific_ | Upload is in progress (see {{event("progress")}}). | +| {{event("ussdreceived")}} | | _Firefox OS specific_ | A new USSD message is received | +| {{event("voicechange")}} | | _Firefox OS specific_ | The {{domxref("MozMobileConnection.voice")}} object changes values. | + +## Eventos específicos Mozilla + +> **Nota:** **Observação: esses eventos nunca são expostos no conteúdo da web e apenas podem ser usados no contexto do conteúdo do chrome.** + +### Eventos XUL + +| Nome do Evento | Tipo do Evento | Especificação | Disparado quando... | +| ----------------------------------------------------- | -------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| {{event("broadcast")}} | | [XUL](/pt-BR/docs/XUL/Tutorial/Broadcasters_and_Observers#Broadcast_event) | An `observer` noticed a change to the attributes of a watched broadcaster. | +| {{event("CheckboxStateChange")}} | | XUL | The state of a `checkbox` has been changed either by a user action or by a script (useful for accessibility). | +| [close](/pt-BR/docs/Web/Reference/Events/close_event) | | XUL | The close button of the window has been clicked. | +| {{event("command")}} | | XUL | An element has been activated. | +| {{event("commandupdate")}} | | XUL | A command update occurred on a `commandset` element. | +| {{event("DOMMenuItemActive")}} | | XUL | A menu or menuitem has been hovered or highlighted. | +| {{event("DOMMenuItemInactive")}} | | _XUL_ | A menu or menuitem is no longer hovered or highlighted. | +| {{event("popuphidden")}} | `PopupEvent` | [_XUL_](/pt-BR/docs/XUL/PopupGuide/PopupEvents) | A menupopup, panel or tooltip has been hidden. | +| {{event("popuphiding")}} | `PopupEvent` | [_XUL_](/pt-BR/docs/XUL/PopupGuide/PopupEvents) | A menupopup, panel or tooltip is about to be hidden. | +| {{event("popupshowing")}} | `PopupEvent` | [_XUL_](/pt-BR/docs/XUL/PopupGuide/PopupEvents) | A menupopup, panel or tooltip is about to become visible. | +| {{event("popupshown")}} | `PopupEvent` | [_XUL_](/pt-BR/docs/XUL/PopupGuide/PopupEvents) | A menupopup, panel or tooltip has become visible. | +| {{event("RadioStateChange")}} | | XUL | The state of a `radio` has been changed either by a user action or by a script (useful for accessibility). | +| {{event("ValueChange")}} | | XUL | The value of an element has changed (a progress bar for example, useful for accessibility). | + +### Add-on-specific events + +| Event Name | Event Type | Specification | Fired when... | +| ----------------------------------------------------------------------------------- | ---------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| [MozSwipeGesture](/pt-BR/docs/Web/Reference/Events/MozSwipeGesture) | | _Addons specific_ | A touch point is swiped across the touch surface | +| [MozMagnifyGestureStart](/pt-BR/docs/Web/Reference/Events/MozMagnifyGestureStart) | | _Addons specific_ | Two touch points start to move away from each other. | +| [MozMagnifyGestureUpdate](/pt-BR/docs/Web/Reference/Events/MozMagnifyGestureUpdate) | | _Addons specific_ | Two touch points move away from each other (after a MozMagnifyGestureStart). | +| [MozMagnifyGesture](/pt-BR/docs/Web/Reference/Events/MozMagnifyGesture) | | _Addons specific_ | Two touch points moved away from each other (after a sequence of MozMagnifyGestureUpdate). | +| [MozRotateGestureStart](/pt-BR/docs/Web/Reference/Events/MozRotateGestureStart) | | _Addons specific_ | Two touch points start to rotate around a point. | +| [MozRotateGestureUpdate](/pt-BR/docs/Web/Reference/Events/MozRotateGestureUpdate) | | _Addons specific_ | Two touch points rotate around a point (after a MozRotateGestureStart). | +| [MozRotateGesture](/pt-BR/docs/Web/Reference/Events/MozRotateGesture) | | _Addons specific_ | Two touch points rotate around a point (after a sequence of MozRotateGestureUpdate). | +| [MozTapGesture](/pt-BR/docs/Web/Reference/Events/MozTapGesture) | | _Addons specific_ | Two touch points are tapped on the touch surface. | +| [MozPressTapGesture](/pt-BR/docs/Web/Reference/Events/MozPressTapGesture) | | _Addons specific_ | A "press-tap" gesture happened on the touch surface (first finger down, second finger down, second finger up, first finger up). | +| [MozEdgeUIGesture](/pt-BR/docs/Web/Reference/Events/MozEdgeUIGesture) | | _Addons specific_ | A touch point is swiped across the touch surface to invoke the edge UI (Win8 only). | +| [MozAfterPaint](/pt-BR/docs/Web/Reference/Events/MozAfterPaint) | | _Addons specific_ | Content has been repainted. | +| [DOMPopupBlocked](/pt-BR/docs/Web/Reference/Events/DOMPopupBlocked) | | _Addons specific_ | A popup has been blocked | +| [DOMWindowCreated](/pt-BR/docs/Web/Reference/Events/DOMWindowCreated) | | _Addons specific_ | A window has been created. | +| [DOMWindowClose](/pt-BR/docs/Web/Reference/Events/DOMWindowClose) | | _Addons specific_ | A window is about to be closed. | +| [DOMTitleChanged](/pt-BR/docs/Web/Reference/Events/DOMTitleChanged) | | _Addons specifc_ | The title of a window has changed. | +| [DOMLinkAdded](/pt-BR/docs/Web/Reference/Events/DOMLinkAdded) | | _Addons specifc_ | A link has been added a document. | +| [DOMLinkRemoved](/pt-BR/docs/Web/Reference/Events/DOMLinkRemoved) | | _Addons specifc_ | A link has been removed inside from a document. | +| [DOMMetaAdded](/pt-BR/docs/Web/Reference/Events/DOMMetaAdded) | | _Addons specific_ | A `meta` element has been added to a document. | +| [DOMMetaRemoved](/pt-BR/docs/Web/Reference/Events/DOMMetaRemoved) | | _Addons specific_ | A `meta` element has been removed from a document. | +| [DOMWillOpenModalDialog](/pt-BR/docs/Web/Reference/Events/DOMWillOpenModalDialog) | | _Addons specific_ | A modal dialog is about to open. | +| [DOMModalDialogClosed](/pt-BR/docs/Web/Reference/Events/DOMModalDialogClosed) | | _Addons specific_ | A modal dialog has been closed. | +| [DOMAutoComplete](/pt-BR/docs/Web/Reference/Events/DOMAutoComplete) | | _Addons specific_ | The content of an element has been auto-completed. | +| [DOMFrameContentLoaded](/pt-BR/docs/Web/Reference/Events/DOMFrameContentLoaded) | | _Addons specific_ | The frame has finished loading (but not its dependent resources). | +| [AlertActive](/pt-BR/docs/Web/Reference/Events/AlertActive) | | _Addons specific_ | A [`notification`](/en-US/docs/XUL/notification) element is shown. | +| [AlertClose](/pt-BR/docs/Web/Reference/Events/AlertClose) | | _Addons specific_ | A [`notification`](/en-US/docs/XUL/notification) element is closed. | +| [fullscreen](/pt-BR/docs/Web/Reference/Events/fullscreen) | | _Addons specific_ | Browser fullscreen mode has been entered or left. | +| [sizemodechange](/pt-BR/docs/Web/Reference/Events/sizemodechange) | | _Addons specific_ | Window has entered/left fullscreen mode, or has been minimized/unminimized. | +| [MozEnteredDomFullscreen](/pt-BR/docs/Web/Reference/Events/MozEnteredDomFullscreen) | | _Addons specific_ | [DOM fullscreen](/pt-BR/docs/DOM/Using_full-screen_mode) mode has been entered. | +| [SSWindowClosing](/pt-BR/docs/Web/Reference/Events/SSWindowClosing) | | _Addons specific_ | The session store will stop tracking this window. | +| [SSTabClosing](/pt-BR/docs/Web/Reference/Events/SSTabClosing) | | _Addons specific_ | The session store will stop tracking this tab. | +| [SSTabRestoring](/pt-BR/docs/Web/Reference/Events/SSTabRestoring) | | _Addons specific_ | A tab is about to be restored. | +| [SSTabRestored](/pt-BR/docs/Web/Reference/Events/SSTabRestored) | | _Addons specific_ | A tab has been restored. | +| [SSWindowStateReady](/pt-BR/docs/Web/Reference/Events/SSWindowStateReady) | | _Addons specific_ | A window state has switched to "ready". | +| [SSWindowStateBusy](/pt-BR/docs/Web/Reference/Events/SSWindowStateBusy) | | _Addons specific_ | A window state has switched to "busy". | +| [tabviewsearchenabled](/pt-BR/docs/Web/Reference/Events/tabviewsearchenabled) | | _Addons specific_ | The search feature of Panorama has been activated | +| [tabviewsearchdisabled](/pt-BR/docs/Web/Reference/Events/tabviewsearchdisabled) | | _Addons specific_ | The search feature of Panorama has been deactivated | +| [tabviewframeinitialized](/pt-BR/docs/Web/Reference/Events/tabviewframeinitialized) | | _Addons specific_ | The frame container of Panorama has been initialized | +| [tabviewshown](/pt-BR/docs/Web/Reference/Events/tabviewshown) | | _Addons specific_ | The Panorama tab has been shown | +| [tabviewhidden](/pt-BR/docs/Web/Reference/Events/tabviewhidden) | | _Addons specific_ | The Panorama tab has been hidden | +| [TabOpen](/pt-BR/docs/Web/Reference/Events/TabOpen) | | _Addons specific_ | A tab has been opened. | +| [TabClose](/pt-BR/docs/Web/Reference/Events/TabClose) | | _Addons specific_ | A tab has been closed. | +| [TabSelect](/pt-BR/docs/Web/Reference/Events/TabSelect) | | _Addons specific_ | A tab has been selected. | +| [TabShow](/pt-BR/docs/Web/Reference/Events/TabShow) | | _Addons specific_ | A tab has been shown. | +| [TabHide](/pt-BR/docs/Web/Reference/Events/TabHide) | | _Addons specific_ | A tab has been hidden. | +| [TabPinned](/pt-BR/docs/Web/Reference/Events/TabPinned) | | _Addons specific_ | A tab has been pinned. | +| [TabUnpinned](/pt-BR/docs/Web/Reference/Events/TabUnpinned) | | _Addons specific_ | A tab has been unpinned. | -

{{event("alerting")}}, {{event("busy")}}, {{event("callschanged")}} {{event("cfstatechange")}}, {{event("connected")}}, {{event("connecting")}}, {{event("dialing")}}, {{event("disconnected")}}, {{event("disconnecting")}}, {{event("error_(Telephony)","error")}}, {{event("held")}}, {{event("holding")}}, {{event("incoming")}}, {{event("resuming")}}, {{event("statechange")}}, {{event("voicechange")}}

+### Developer tool-specific events -

CSS events

+| Event Name | Event Type | Specification | Fired when... | +| --------------------------------------------------------------------------------------- | ---------- | ------------------- | --------------------------------------------------------------------------------- | +| [CssRuleViewRefreshed](/pt-BR/docs/Web/Reference/Events/CssRuleViewRefreshed) | | _devtools specific_ | The "Rules" view of the style inspector has been updated. | +| [CssRuleViewChanged](/pt-BR/docs/Web/Reference/Events/CssRuleViewChanged) | | _devtools specific_ | The "Rules" view of the style inspector has been changed. | +| [CssRuleViewCSSLinkClicked](/pt-BR/docs/Web/Reference/Events/CssRuleViewCSSLinkClicked) | | _devtools specific_ | A link to a CSS file has been clicked in the "Rules" view of the style inspector. | -

CssRuleViewRefreshed, CssRuleViewChanged, CssRuleViewCSSLinkClicked, {{event("transitionend")}}

+## Categories -

Database events

+### Animation events -

abort, blocked, complete, {{event("error")}} (link), success, upgradeneeded, versionchange

+{{event("animationend")}}, {{event("animationiteration")}}, {{event("animationstart")}}, {{event("beginEvent")}}, {{event("endEvent")}}, {{event("repeatEvent")}} -

Document events

+### Battery events -

DOMLinkAdded, DOMLinkRemoved, DOMMetaAdded, DOMMetaRemoved, DOMWillOpenModalDialog, DOMModalDialogClosed, {{event("unload")}}

+{{event("chargingchange")}} {{event("chargingtimechange")}}, {{event("dischargingtimechange")}} {{event("levelchange")}} -

DOM mutation events

+### Call events -

DOMAttributeNameChanged, DOMAttrModified, DOMCharacterDataModified, {{event("DOMContentLoaded")}}, DOMElementNameChanged, DOMNodeInserted, DOMNodeInsertedIntoDocument, DOMNodeRemoved, DOMNodeRemovedFromDocument, DOMSubtreeModified

+{{event("alerting")}}, {{event("busy")}}, {{event("callschanged")}} {{event("cfstatechange")}}, {{event("connected")}}, {{event("connecting")}}, {{event("dialing")}}, {{event("disconnected")}}, {{event("disconnecting")}}, {{event("error_(Telephony)","error")}}, {{event("held")}}, {{event("holding")}}, {{event("incoming")}}, {{event("resuming")}}, {{event("statechange")}}, {{event("voicechange")}} -

Drag events

+### CSS events -

{{event("drag")}}, dragdrop, {{event("dragend")}}, {{event("dragenter")}}, dragexit, draggesture, {{event("dragleave")}}, {{event("dragover")}}, {{event("dragstart")}}, {{event("drop")}}

+[CssRuleViewRefreshed](/pt-BR/docs/Web/Reference/Events/CssRuleViewRefreshed), [CssRuleViewChanged](/pt-BR/docs/Web/Reference/Events/CssRuleViewChanged), [CssRuleViewCSSLinkClicked](/pt-BR/docs/Web/Reference/Events/CssRuleViewCSSLinkClicked), {{event("transitionend")}} -

Element events

+### Database events -

{{event("invalid")}}, {{event("overflow")}}, {{event("underflow")}}, DOMAutoComplete, {{event("command")}}, {{event("commandupdate")}}

+[`abort`](/en-US/docs/Web/Reference/Events/abort_indexedDB), [`blocked`](/en-US/docs/Web/Reference/Events/blocked_indexedDB), [`complete`](/en-US/docs/Web/Reference/Events/complete_indexedDB), {{event("error")}} ([link](/pt-BR/docs/Web/Reference/Events/error)), [`success`](/en-US/docs/Web/Reference/Events/success_indexedDB), [`upgradeneeded`](/en-US/docs/Web/Reference/Events/upgradeneeded_indexedDB), [`versionchange`](/en-US/docs/Web/Reference/Events/versionchange_indexedDB) -

Focus events

+### Document events -

{{event("blur")}}, {{event("change")}}, DOMFocusIn, DOMFocusOut, {{event("focus")}}, {{event("focusin")}}, {{event("focusout")}}

+[DOMLinkAdded](/pt-BR/docs/Web/Reference/Events/DOMLinkAdded), [DOMLinkRemoved](/pt-BR/docs/Web/Reference/Events/DOMLinkRemoved), [DOMMetaAdded](/pt-BR/docs/Web/Reference/Events/DOMMetaAdded), [DOMMetaRemoved](/pt-BR/docs/Web/Reference/Events/DOMMetaRemoved), [DOMWillOpenModalDialog](/pt-BR/docs/Web/Reference/Events/DOMWillOpenModalDialog), [DOMModalDialogClosed](/pt-BR/docs/Web/Reference/Events/DOMModalDialogClosed), {{event("unload")}} -

Form events

+### DOM mutation events -

{{event("reset")}}, {{event("submit")}}

+[`DOMAttributeNameChanged`](/en-US/docs/DOM/Mutation_events), [`DOMAttrModified`](/en-US/docs/DOM/Mutation_events), [`DOMCharacterDataModified`](/en-US/docs/DOM/Mutation_events), {{event("DOMContentLoaded")}}, [`DOMElementNameChanged`](/en-US/docs/DOM/Mutation_events), [`DOMNodeInserted`](/en-US/docs/DOM/Mutation_events), [`DOMNodeInsertedIntoDocument`](/en-US/docs/DOM/Mutation_events), [`DOMNodeRemoved`](/en-US/docs/DOM/Mutation_events), [`DOMNodeRemovedFromDocument`](/en-US/docs/DOM/Mutation_events), [`DOMSubtreeModified`](/en-US/docs/DOM/Mutation_events) -

Frame events

+### Drag events -

{{event("mozbrowserclose")}}, {{event("mozbrowsercontextmenu")}}, {{event("mozbrowsererror")}}, {{event("mozbrowsericonchange")}}, {{event("mozbrowserlocationchange")}}, {{event("mozbrowserloadend")}}, {{event("mozbrowserloadstart")}}, {{event("mozbrowseropenwindow")}}, {{event("mozbrowsersecuritychange")}}, {{event("mozbrowsershowmodalprompt")}} (link), {{event("mozbrowsertitlechange")}}, DOMFrameContentLoaded

+{{event("drag")}}, `dragdrop`, {{event("dragend")}}, {{event("dragenter")}}, `dragexit`, `draggesture`, {{event("dragleave")}}, {{event("dragover")}}, {{event("dragstart")}}, {{event("drop")}} -

Input device events

+### Element events -

{{event("click")}}, {{event("contextmenu")}}, {{event("DOMMouseScroll")}}, {{event("dblclick")}}, {{event("gamepadconnected")}}, {{event("gamepaddisconnected")}}, {{event("keydown")}}, {{event("keypress")}}, {{event("keyup")}}, {{event("MozGamepadButtonDown")}}, {{event("MozGamepadButtonUp")}}, {{event("mousedown")}}, {{event("mouseenter")}}, {{event("mouseleave")}}, {{event("mousemove")}}, {{event("mouseout")}}, {{event("mouseover")}}, {{event("mouseup")}}, {{event("mousewheel")}}, {{event("MozMousePixelScroll")}}, {{event("pointerlockchange")}}, {{event("pointerlockerror")}},{{event("wheel")}}

+{{event("invalid")}}, {{event("overflow")}}, {{event("underflow")}}, [DOMAutoComplete](/pt-BR/docs/Web/Reference/Events/DOMAutoComplete), {{event("command")}}, {{event("commandupdate")}} -

Media events

+### Focus events -

{{event("audioprocess")}}, {{event("canplay")}}, {{event("canplaythrough")}}, {{event("durationchange")}}, {{event("emptied")}}, {{event("ended")}}, {{event("ended_(Web_Audio)", "ended")}}, {{event("loadeddata")}}, {{event("loadedmetadata")}}, {{event("MozAudioAvailable")}}, {{event("pause")}}, {{event("play")}}, {{event("playing")}}, {{event("ratechange")}}, {{event("seeked")}}, {{event("seeking")}}, {{event("stalled")}}, {{event("suspend")}}, {{event("timeupdate")}}, {{event("volumechange")}}, {{event("waiting")}}, {{event("complete")}}

+{{event("blur")}}, {{event("change")}}, `DOMFocusIn`, `DOMFocusOut`, {{event("focus")}}, {{event("focusin")}}, {{event("focusout")}} - +### Form events -

{{event("DOMMenuItemActive")}}, {{event("DOMMenuItemInactive")}}

+{{event("reset")}}, {{event("submit")}} -

Network events

+### Frame events -

{{event("datachange")}}, {{event("dataerror")}}, {{event("disabled")}}, {{event("enabled")}}, {{event("offline")}}, {{event("online")}}, {{event("statuschange")}}, {{event("connectionInfoUpdate")}},

+{{event("mozbrowserclose")}}, {{event("mozbrowsercontextmenu")}}, {{event("mozbrowsererror")}}, {{event("mozbrowsericonchange")}}, {{event("mozbrowserlocationchange")}}, {{event("mozbrowserloadend")}}, {{event("mozbrowserloadstart")}}, {{event("mozbrowseropenwindow")}}, {{event("mozbrowsersecuritychange")}}, {{event("mozbrowsershowmodalprompt")}} ([link](/pt-BR/docs/Web/Reference/Events/mozbrowsershowmodalprompt)), {{event("mozbrowsertitlechange")}}, [DOMFrameContentLoaded](/pt-BR/docs/Web/Reference/Events/DOMFrameContentLoaded) -

Notification events

+### Input device events -

AlertActive, AlertClose

+{{event("click")}}, {{event("contextmenu")}}, {{event("DOMMouseScroll")}}, {{event("dblclick")}}, {{event("gamepadconnected")}}, {{event("gamepaddisconnected")}}, {{event("keydown")}}, {{event("keypress")}}, {{event("keyup")}}, {{event("MozGamepadButtonDown")}}, {{event("MozGamepadButtonUp")}}, {{event("mousedown")}}, {{event("mouseenter")}}, {{event("mouseleave")}}, {{event("mousemove")}}, {{event("mouseout")}}, {{event("mouseover")}}, {{event("mouseup")}}, {{event("mousewheel")}}, {{event("MozMousePixelScroll")}}, {{event("pointerlockchange")}}, {{event("pointerlockerror")}},{{event("wheel")}} - +### Media events -

{{event("popuphidden")}}, {{event("popuphiding")}}, {{event("popupshowing")}}, {{event("popupshown")}}, DOMPopupBlocked

+{{event("audioprocess")}}, {{event("canplay")}}, {{event("canplaythrough")}}, {{event("durationchange")}}, {{event("emptied")}}, {{event("ended")}}, {{event("ended_(Web_Audio)", "ended")}}, {{event("loadeddata")}}, {{event("loadedmetadata")}}, {{event("MozAudioAvailable")}}, {{event("pause")}}, {{event("play")}}, {{event("playing")}}, {{event("ratechange")}}, {{event("seeked")}}, {{event("seeking")}}, {{event("stalled")}}, {{event("suspend")}}, {{event("timeupdate")}}, {{event("volumechange")}}, {{event("waiting")}}, {{event("complete")}} -

Printing events

+### Menu events -

{{event("afterprint")}}, {{event("beforeprint")}}

+{{event("DOMMenuItemActive")}}, {{event("DOMMenuItemInactive")}} -

Progress events

+### Network events -

abort, {{event("error")}}, load, {{event("loadend")}}, {{event("loadstart")}}, {{event("progress")}}, progress, {{event("timeout")}}, uploadprogress

+{{event("datachange")}}, {{event("dataerror")}}, {{event("disabled")}}, {{event("enabled")}}, {{event("offline")}}, {{event("online")}}, {{event("statuschange")}}, {{event("connectionInfoUpdate")}}, -

Resource events

+### Notification events -

{{event("abort")}}, {{event("cached")}}, {{event("error")}}, {{event("load")}}

+[AlertActive](/pt-BR/docs/Web/Reference/Events/AlertActive), [AlertClose](/pt-BR/docs/Web/Reference/Events/AlertClose) -

Script events

+### Popup events -

{{event("afterscriptexecute")}}, {{event("beforescriptexecute")}}

+{{event("popuphidden")}}, {{event("popuphiding")}}, {{event("popupshowing")}}, {{event("popupshown")}}, [DOMPopupBlocked](/pt-BR/docs/Web/Reference/Events/DOMPopupBlocked) -

Sensor events

+### Printing events -

{{event("compassneedscalibration")}}, {{event("devicelight")}}, {{event("devicemotion")}}, {{event("deviceorientation")}}, {{event("deviceproximity")}}, {{event("MozOrientation")}}, {{event("orientationchange")}}, {{event("userproximity")}}

+{{event("afterprint")}}, {{event("beforeprint")}} -

Session history events

+### Progress events -

{{event("pagehide")}}, {{event("pageshow")}}, {{event("popstate")}}

+[`abort`](), {{event("error")}}, [`load`](), {{event("loadend")}}, {{event("loadstart")}}, {{event("progress")}}, [`progress`](), {{event("timeout")}}, `uploadprogress` -

Smartcard events

+### Resource events -

{{event("icccardlockerror")}}, {{event("iccinfochange")}}, {{event("smartcard-insert")}}, {{event("smartcard-remove")}}, {{event("stkcommand")}}, {{event("stksessionend")}}, {{event("cardstatechange")}}

+{{event("abort")}}, {{event("cached")}}, {{event("error")}}, {{event("load")}} -

SMS and USSD events

+### Script events -

{{event("delivered")}}, {{event("received")}}, {{event("sent")}}, {{event("ussdreceived")}}

+{{event("afterscriptexecute")}}, {{event("beforescriptexecute")}} -

Storage events

+### Sensor events -

{{event("change")}} (see Non-standard events), {{event("storage")}}

+{{event("compassneedscalibration")}}, {{event("devicelight")}}, {{event("devicemotion")}}, {{event("deviceorientation")}}, {{event("deviceproximity")}}, {{event("MozOrientation")}}, {{event("orientationchange")}}, {{event("userproximity")}} -

SVG events

+### Session history events -

{{event("SVGAbort")}}, {{event("SVGError")}}, {{event("SVGLoad")}}, {{event("SVGResize")}}, {{event("SVGScroll")}}, {{event("SVGUnload")}}, {{event("SVGZoom")}}

+{{event("pagehide")}}, {{event("pageshow")}}, {{event("popstate")}} -

Tab events

+### Smartcard events -

tabviewsearchenabled, tabviewsearchdisabled, tabviewframeinitialized, tabviewshown, tabviewhidden, TabOpen, TabClose, TabSelect, TabShow, TabHide, TabPinned, TabUnpinned, SSTabClosing, SSTabRestoring, SSTabRestored, {{event("visibilitychange")}}

+{{event("icccardlockerror")}}, {{event("iccinfochange")}}, {{event("smartcard-insert")}}, {{event("smartcard-remove")}}, {{event("stkcommand")}}, {{event("stksessionend")}}, {{event("cardstatechange")}} -

Text events

+### SMS and USSD events -

{{event("compositionend")}}, {{event("compositionstart")}}, {{event("compositionupdate")}}, {{event("copy")}}, {{event("cut")}}, {{event("paste")}}, {{event("select")}}, text

+{{event("delivered")}}, {{event("received")}}, {{event("sent")}}, {{event("ussdreceived")}} -

Touch events

+### Storage events -

MozEdgeUIGesture, MozMagnifyGesture, MozMagnifyGestureStart, MozMagnifyGestureUpdate, MozPressTapGesture, MozRotateGesture, MozRotateGestureStart, MozRotateGestureUpdate, MozSwipeGesture, MozTapGesture, MozTouchDown, MozTouchMove, MozTouchUp, {{event("touchcancel")}}, {{event("touchend")}}, {{event("touchenter")}}, {{event("touchleave")}}, {{event("touchmove")}}, {{event("touchstart")}}

+{{event("change")}} (see [Non-standard events](#non-standard_events)), {{event("storage")}} -

Update events

+### SVG events -

{{event("checking")}}, {{event("downloading")}}, {{event("error")}}, {{event("noupdate")}}, {{event("obsolete")}}, {{event("updateready")}}

+{{event("SVGAbort")}}, {{event("SVGError")}}, {{event("SVGLoad")}}, {{event("SVGResize")}}, {{event("SVGScroll")}}, {{event("SVGUnload")}}, {{event("SVGZoom")}} -

Value change events

+### Tab events -

{{event("broadcast")}}, {{event("CheckboxStateChange")}}, {{event("hashchange")}}, {{event("input")}}, {{event("RadioStateChange")}}, {{event("readystatechange")}}, {{event("ValueChange")}}

+[tabviewsearchenabled](/pt-BR/docs/Web/Reference/Events/tabviewsearchenabled), [tabviewsearchdisabled](/pt-BR/docs/Web/Reference/Events/tabviewsearchdisabled), [tabviewframeinitialized](/pt-BR/docs/Web/Reference/Events/tabviewframeinitialized), [tabviewshown](/pt-BR/docs/Web/Reference/Events/tabviewshown), [tabviewhidden](/pt-BR/docs/Web/Reference/Events/tabviewhidden), [TabOpen](/pt-BR/docs/Web/Reference/Events/TabOpen), [TabClose](/pt-BR/docs/Web/Reference/Events/TabClose), [TabSelect](/pt-BR/docs/Web/Reference/Events/TabSelect), [TabShow](/pt-BR/docs/Web/Reference/Events/TabShow), [TabHide](/pt-BR/docs/Web/Reference/Events/TabHide), [TabPinned](/pt-BR/docs/Web/Reference/Events/TabPinned), [TabUnpinned](/pt-BR/docs/Web/Reference/Events/TabUnpinned), [SSTabClosing](/pt-BR/docs/Web/Reference/Events/SSTabClosing), [SSTabRestoring](/pt-BR/docs/Web/Reference/Events/SSTabRestoring), [SSTabRestored](/pt-BR/docs/Web/Reference/Events/SSTabRestored), {{event("visibilitychange")}} -

View events

+### Text events -

fullscreen, {{event("fullscreenchange")}}, {{event("fullscreenerror")}}, MozEnteredDomFullscreen, {{event("MozScrolledAreaChanged")}}, {{event("resize")}}, {{event("scroll")}}, sizemodechange

+{{event("compositionend")}}, {{event("compositionstart")}}, {{event("compositionupdate")}}, {{event("copy")}}, {{event("cut")}}, {{event("paste")}}, {{event("select")}}, `text` -

Websocket events

+### Touch events -

close, {{event("error")}}, message, open

+[MozEdgeUIGesture](/pt-BR/docs/Web/Reference/Events/MozEdgeUIGesture), [MozMagnifyGesture](/pt-BR/docs/Web/Reference/Events/MozMagnifyGesture), [MozMagnifyGestureStart](/pt-BR/docs/Web/Reference/Events/MozMagnifyGestureStart), [MozMagnifyGestureUpdate](/pt-BR/docs/Web/Reference/Events/MozMagnifyGestureUpdate), [MozPressTapGesture](/pt-BR/docs/Web/Reference/Events/MozPressTapGesture), [MozRotateGesture](/pt-BR/docs/Web/Reference/Events/MozRotateGesture), [MozRotateGestureStart](/pt-BR/docs/Web/Reference/Events/MozRotateGestureStart), [MozRotateGestureUpdate](/pt-BR/docs/Web/Reference/Events/MozRotateGestureUpdate), [MozSwipeGesture](/pt-BR/docs/Web/Reference/Events/MozSwipeGesture), [MozTapGesture](/pt-BR/docs/Web/Reference/Events/MozTapGesture), [MozTouchDown](), [MozTouchMove](), [MozTouchUp](), {{event("touchcancel")}}, {{event("touchend")}}, {{event("touchenter")}}, {{event("touchleave")}}, {{event("touchmove")}}, {{event("touchstart")}} -

Window events

+### Update events -

DOMWindowCreated, DOMWindowClose, DOMTitleChanged, MozBeforeResize {{obsolete_inline}}, SSWindowClosing, SSWindowStateReady, SSWindowStateBusy, close

+{{event("checking")}}, {{event("downloading")}}, {{event("error")}}, {{event("noupdate")}}, {{event("obsolete")}}, {{event("updateready")}} -

Uncategorized events

+### Value change events -

{{event("beforeunload")}}, {{event("localized")}}, message, message, message, MozAfterPaint, {{event("moztimechange")}}, open, {{event("show")}}

+{{event("broadcast")}}, {{event("CheckboxStateChange")}}, {{event("hashchange")}}, {{event("input")}}, {{event("RadioStateChange")}}, {{event("readystatechange")}}, {{event("ValueChange")}} -

See also

+### View events - +[fullscreen](/pt-BR/docs/Web/Reference/Events/fullscreen), {{event("fullscreenchange")}}, {{event("fullscreenerror")}}, [MozEnteredDomFullscreen](/pt-BR/docs/Web/Reference/Events/MozEnteredDomFullscreen), {{event("MozScrolledAreaChanged")}}, {{event("resize")}}, {{event("scroll")}}, [sizemodechange](/pt-BR/docs/Web/Reference/Events/sizemodechange) + +### Websocket events + +[`close`](/en-US/docs/Web/Reference/Events/close_websocket), {{event("error")}}, [`message`](/en-US/docs/Web/Reference/Events/message_websocket), [`open`](/en-US/docs/Web/Reference/Events/open_websocket) + +### Window events + +[DOMWindowCreated](/pt-BR/docs/Web/Reference/Events/DOMWindowCreated), [DOMWindowClose](/pt-BR/docs/Web/Reference/Events/DOMWindowClose), [DOMTitleChanged](/pt-BR/docs/Web/Reference/Events/DOMTitleChanged), [MozBeforeResize](/pt-BR/docs/Web/Reference/Events/MozBeforeResize) {{obsolete_inline}}, [SSWindowClosing](/pt-BR/docs/Web/Reference/Events/SSWindowClosing), [SSWindowStateReady](/pt-BR/docs/Web/Reference/Events/SSWindowStateReady), [SSWindowStateBusy](/pt-BR/docs/Web/Reference/Events/SSWindowStateBusy), [close](/pt-BR/docs/Web/Reference/Events/close_event) + +### Uncategorized events + +{{event("beforeunload")}}, {{event("localized")}}, [`message`](/en-US/docs/Web/Reference/Events/message_webworker), [`message`](/en-US/docs/Web/Reference/Events/message_webmessaging), [`message`](/en-US/docs/Web/Reference/Events/message_serversentevents), [MozAfterPaint](/pt-BR/docs/Web/Reference/Events/MozAfterPaint), {{event("moztimechange")}}, [`open`](/en-US/docs/Web/Reference/Events/open_serversentevents), {{event("show")}} + +## See also + +- {{domxref("Event")}} +- [Event developer guide](/pt-BR/docs/Web/Guide/DOM/Events)