Event reference

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

Rede

Nome do evento Momento do disparo
online (en-US) O navegador está conectado à rede.
offline (en-US) O navegador perdeu acesso à rede

Foco

Nome do evento Momento do disparo
focus (en-US) O elemento recebeu o foco (False para Bubbles)
blur (en-US) O elemento perdeu o foco (False para Bubbles)

WebSocket

Nome do evento Momento do disparo
open Conexão WebSocket estabelecida
message Mensagem recebida através do WebSocket
error (en-US) A conexão WebSocket foi encerrada, com erro na transmissão / recepção de dados
close Conexão encerrada

Histórico de sessão

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

Animações CSS

Nome do evento Momento do disparo
animationstart (en-US) A animação começou
animationend (en-US) A animação acabou
animationiteration (en-US) A animação se repete

Transição CSS

Nome do evento Momento do disparo
transitionstart A transição CSS começou (depois de algum delay)
transitioncancel A transição CSS foi cancelada
transitionend (en-US) A transição CSS acabou
transitionrun A transição CSS começou (antes de qualquer delay).

Formulários

Nome do evento Momento do disparo
reset (en-US) Botão de reset pressionado
submit (en-US) Botão de submit pressionado

Impressão

Nome do evento Momento do disparo
beforeprint (en-US) Caixa de diálogo de impressão está aberta
afterprint (en-US) Caixa de diálogo de impressão está fechada

Composição de texto

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

Tela

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

Área de transferência

Nome do evento Momento do disparo
cut (en-US) A seleção foi recortada e copiada para a área de transferência
copy (en-US) A seleção foi copiada para a área de transferência
paste (en-US) O item que estava na área de transferência foi colado

Teclado

Nome do evento Momento do disparo
keydown (en-US) Qualquer tecla foi pressionada
keypress (en-US) Qualquer tecla, com exceção de Shift, Fn e Caps Lock está pressionada (segurada)
keyup (en-US) A tecla foi solta

Mouse

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

Arrastar e soltar

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

Mídia

Nome do evento Momento do disparo
audioprocess (en-US) A entrada do buffer de ScriptProcessorNode (en-US) está pronta para ser processada
canplay (en-US) 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.
canplaythrough (en-US) O navegador estima que poderá reproduzir o arquivo sem interrupções até o final.
complete (en-US) A renderização de OfflineAudioContext foi finalizada.
durationchange (en-US) O atributo duration foi atualizado.
emptied (en-US) 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.
ended (en-US) A reprodução foi finalizada devido ao fim do conteúdo
loadeddata (en-US) O primeiro frame de mídia foi carregado.
loadedmetadata (en-US) Os metadados foram carregados.
pause (en-US) A reprodução foi pausada.
play (en-US) A reprodução foi iniciada.
playing (en-US) A reprodução está pronta para iniciar depois de ser pausada, ou atrasada devido a falta de dados.
ratechange (en-US) A taxa de reprodução foi alterada.
seeked (en-US) Operação de busca finalizada.
seeking (en-US) Operação de busca iniciada.
stalled (en-US) The user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
suspend (en-US) Media data loading has been suspended.
timeupdate (en-US) The time indicated by the currentTime attribute has been updated.
volumechange (en-US) The volume has changed.
waiting (en-US) Playback has stopped because of a temporary lack of data.

Progresso

Nome do evento Momento do disparo
abort O progresso terminou (com sucesso).
error (en-US) Erro no progresso.
load O progresso foi bem sucedido.
loadend (en-US) O progresso foi interrompido (devido a 'error', 'abort' ou load)
loadstart (en-US) O progresso iniciou
progress (en-US) Em progresso
timeout O progresso foi finalizado pois o tempo pré determinado foi expirado.

Armazenamento

Atualização

Mudança de valores

Sem categoria

Eventos pouco comuns e não padronizados

Eventos de busca abortáveis

Nome do evento Momento do disparo
abort Uma requisição ao DOM foi cancelada, utilizando AbortController.abort() (en-US).

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...
abort (en-US) UIEvent (en-US) DOM L3 The loading of a resource has been aborted.
abort ProgressEvent (en-US) Progress and XMLHttpRequest Progression has been terminated (not due to an error).
abort Event IndexedDB A transaction has been aborted.
afterprint (en-US) Event HTML5 The associated document has started printing or the print preview has been closed.
animationend (en-US) AnimationEvent CSS Animations A CSS animation (en-US) has completed.
animationiteration (en-US) AnimationEvent CSS Animations A CSS animation (en-US) is repeated.
animationstart (en-US) AnimationEvent CSS Animations A CSS animation (en-US) has started.
audioprocess (en-US) AudioProcessingEvent (en-US) Web Audio API
The definition of 'audioprocess' in that specification.
The input buffer of a ScriptProcessorNode (en-US) is ready to be processed.
beforeprint (en-US) Event HTML5 The associated document is about to be printed or previewed for printing.
beforeunload (en-US) BeforeUnloadEvent (en-US) HTML5
beginEvent (en-US) TimeEvent (en-US) SVG A SMIL (en-US) animation element begins.
blocked IndexedDB An open connection to a database is blocking a versionchange transaction on the same database.
blur (en-US) FocusEvent (en-US) DOM L3 An element has lost focus (does not bubble).
cached Event Offline The resources listed in the manifest have been downloaded, and the application is now cached.
canplay (en-US) Event HTML5 media 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.
canplaythrough (en-US) Event HTML5 media 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.
change (en-US) Event DOM L2, HTML5 An element loses focus and its value changed since gaining focus.
chargingchange Event Battery status The battery begins or stops charging.
chargingtimechange Event Battery status The chargingTime attribute has been updated.
checking Event Offline The user agent is checking for an update, or attempting to download the cache manifest for the first time.
click (en-US) MouseEvent DOM L3 A pointing device button has been pressed and released on an element.
close Event WebSocket A WebSocket connection has been closed.
compassneedscalibration SensorEvent Orientation The compass used to obtain orientation data is in need of calibration.
complete IndexedDB
complete (en-US) OfflineAudioCompletionEvent (en-US) Web Audio API
The definition of 'OfflineAudioCompletionEvent' in that specification.
The rendering of an OfflineAudioContext is terminated.
compositionend (en-US) CompositionEvent (en-US) DOM L3 The composition of a passage of text has been completed or canceled.
compositionstart (en-US) CompositionEvent (en-US) DOM L3 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).
compositionupdate (en-US) CompositionEvent (en-US) DOM L3 A character is added to a passage of text being composed.
contextmenu (en-US) MouseEvent HTML5 The right button of the mouse is clicked (before the context menu is displayed).
copy (en-US) ClipboardEvent Clipboard The text selection has been added to the clipboard.
cut (en-US) ClipboardEvent Clipboard The text selection has been removed from the document and added to the clipboard.
dblclick (en-US) MouseEvent DOM L3 A pointing device button is clicked twice on an element.
devicelight DeviceLightEvent Ambient Light Events Fresh data is available from a light sensor.
devicemotion (en-US) DeviceMotionEvent (en-US) Device Orientation Events Fresh data is available from a motion sensor.
deviceorientation (en-US) DeviceOrientationEvent (en-US) Device Orientation Events Fresh data is available from an orientation sensor.
deviceproximity DeviceProximityEvent (en-US) Proximity Events Fresh data is available from a proximity sensor (indicates an approximated distance between the device and a nearby object).
dischargingtimechange Event Battery status The dischargingTime attribute has been updated.
DOMActivate Deprecated UIEvent (en-US) DOM L3 A button, link or state changing element is activated (use click (en-US) instead).
DOMAttributeNameChanged Deprecated MutationNameEvent DOM L3 Removed The name of an attribute changed (use mutation observers (en-US) instead).
DOMAttrModified Deprecated MutationEvent (en-US) DOM L3 The value of an attribute has been modified (use mutation observers (en-US) instead).
DOMCharacterDataModified Deprecated MutationEvent (en-US) DOM L3 A text or another CharacterData (en-US) has changed (use mutation observers (en-US) instead).
DOMContentLoaded (en-US) Event HTML5 The document has finished loading (but not its dependent resources).
DOMElementNameChanged Deprecated MutationNameEvent DOM L3 Removed The name of an element changed (use mutation observers (en-US) instead).
DOMFocusIn Deprecated FocusEvent (en-US) DOM L3 An element has received focus (use focus (en-US) or focusin (en-US) instead).
DOMFocusOut Deprecated FocusEvent (en-US) DOM L3 An element has lost focus (use blur (en-US) or focusout (en-US) instead).
DOMNodeInserted Deprecated MutationEvent (en-US) DOM L3 A node has been added as a child of another node (use mutation observers (en-US) instead).
DOMNodeInsertedIntoDocument Deprecated MutationEvent (en-US) DOM L3 A node has been inserted into the document (use mutation observers (en-US) instead).
DOMNodeRemoved Deprecated MutationEvent (en-US) DOM L3 A node has been removed from its parent node (use mutation observers (en-US) instead).
DOMNodeRemovedFromDocument Deprecated MutationEvent (en-US) DOM L3 A node has been removed from the document (use mutation observers (en-US) instead).
DOMSubtreeModified Deprecated MutationEvent (en-US) DOM L3 A change happened in the document (use mutation observers (en-US) instead).
downloading Event 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.
drag (en-US) DragEvent (en-US) HTML5 An element or text selection is being dragged (every 350ms).
dragend (en-US) DragEvent (en-US) HTML5 A drag operation is being ended (by releasing a mouse button or hitting the escape key).
dragenter (en-US) DragEvent (en-US) HTML5 A dragged element or text selection enters a valid drop target.
dragleave (en-US) DragEvent (en-US) HTML5 A dragged element or text selection leaves a valid drop target.
dragover (en-US) DragEvent (en-US) HTML5 An element or text selection is being dragged over a valid drop target (every 350ms).
dragstart (en-US) DragEvent (en-US) HTML5 The user starts dragging an element or text selection.
drop (en-US) DragEvent (en-US) HTML5 An element is dropped on a valid drop target.
durationchange (en-US) Event HTML5 media The duration attribute has been updated.
emptied (en-US) Event HTML5 media The 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.
ended (en-US) Event HTML5 media Playback has stopped because the end of the media was reached.
ended (en-US) Event Web Audio API
endEvent (en-US) TimeEvent (en-US) SVG A SMIL (en-US) animation element ends.
error (en-US) UIEvent (en-US) DOM L3 A resource failed to load.
error (en-US) ProgressEvent (en-US) Progress and XMLHttpRequest Progression has failed.
error (en-US) Event Offline An error occurred while downloading the cache manifest or updating the content of the application.
error (en-US) Event WebSocket A WebSocket connection has been closed with prejudice (some data couldn't be sent for example).
error (en-US) Event Server Sent Events An event source connection has been failed.
error (en-US) Event IndexedDB A request caused an error and failed.
focus (en-US) FocusEvent (en-US) DOM L3 An element has received focus (does not bubble).
focusin (en-US) FocusEvent (en-US) DOM L3 An element is about to receive focus (bubbles).
focusout (en-US) FocusEvent (en-US) DOM L3 An element is about to lose focus (bubbles).
fullscreenchange (en-US) Event Full Screen An element was turned to fullscreen mode or back to normal mode.
fullscreenerror (en-US) Event Full Screen It was impossible to switch to fullscreen mode for technical reasons or because the permission was denied.
gamepadconnected (en-US) GamepadEvent (en-US) Gamepad A gamepad has been connected.
gamepaddisconnected (en-US) GamepadEvent (en-US) Gamepad A gamepad has been disconnected.
hashchange (en-US) HashChangeEvent (en-US) HTML5 The fragment identifier of the URL has changed (the part of the URL after the #).
input (en-US) Event HTML5 The value of an element changes or the content of an element with the attribute contenteditable (en-US) is modified.
invalid (en-US) Event HTML5 A submittable element has been checked and doesn't satisfy its constraints.
keydown (en-US) KeyboardEvent DOM L3 A key is pressed down.
keypress (en-US) KeyboardEvent DOM L3 A key is pressed down and that key normally produces a character value (use input instead).
keyup (en-US) KeyboardEvent DOM L3 A key is released.
languagechange (en-US) Event HTML 5.1
The definition of 'NavigatorLanguage.languages' in that specification.
levelchange Event Battery status The level attribute has been updated.
load (en-US) UIEvent (en-US) DOM L3 A resource and its dependent resources have finished loading.
load ProgressEvent (en-US) Progress and XMLHttpRequest Progression has been successful.
loadeddata (en-US) Event HTML5 media The first frame of the media has finished loading.
loadedmetadata (en-US) Event HTML5 media The metadata has been loaded.
loadend (en-US) ProgressEvent (en-US) Progress and XMLHttpRequest Progress has stopped (after "error", "abort" or "load" have been dispatched).
loadstart (en-US) ProgressEvent (en-US) Progress and XMLHttpRequest Progress has begun.
message MessageEvent (en-US) WebSocket A message is received through a WebSocket.
message MessageEvent (en-US) Web Workers A message is received from a Web Worker.
message MessageEvent (en-US) Web Messaging A message is received from a child (i)frame or a parent window.
message MessageEvent (en-US) Server Sent Events A message is received through an event source.
mousedown (en-US) MouseEvent DOM L3 A pointing device button (usually a mouse) is pressed on an element.
mouseenter (en-US) MouseEvent DOM L3 A pointing device is moved onto the element that has the listener attached.
mouseleave (en-US) MouseEvent DOM L3 A pointing device is moved off the element that has the listener attached.
mousemove (en-US) MouseEvent DOM L3 A pointing device is moved over an element.
mouseout (en-US) MouseEvent DOM L3 A pointing device is moved off the element that has the listener attached or off one of its children.
mouseover (en-US) MouseEvent DOM L3 A pointing device is moved onto the element that has the listener attached or onto one of its children.
mouseup (en-US) MouseEvent DOM L3 A pointing device button is released over an element.
noupdate Event Offline The manifest hadn't changed.
obsolete Event Offline The manifest was found to have become a 404 or 410 page, so the application cache is being deleted.
offline (en-US) Event HTML5 offline The browser has lost access to the network.
online (en-US) Event HTML5 offline The browser has gained access to the network (but particular websites might be unreachable).
open Event WebSocket A WebSocket connection has been established.
open Event Server Sent Events An event source connection has been established.
orientationchange (en-US) Event Screen Orientation The orientation of the device (portrait/landscape) has changed
pagehide (en-US) PageTransitionEvent (en-US) HTML5 A session history entry is being traversed from.
pageshow (en-US) PageTransitionEvent (en-US) HTML5 A session history entry is being traversed to.
paste (en-US) ClipboardEvent Clipboard Data has been transfered from the system clipboard to the document.
pause (en-US) Event HTML5 media Playback has been paused.
pointerlockchange (en-US) Event Pointer Lock The pointer was locked or released.
pointerlockerror (en-US) Event Pointer Lock It was impossible to lock the pointer for technical reasons or because the permission was denied.
play (en-US) Event HTML5 media Playback has begun.
playing (en-US) Event HTML5 media Playback is ready to start after having been paused or delayed due to lack of data.
popstate (en-US) PopStateEvent (en-US) HTML5 A session history entry is being navigated to (in certain cases).
progress (en-US) ProgressEvent (en-US) Progress and XMLHttpRequest In progress.
progress ProgressEvent (en-US) Offline The user agent is downloading resources listed by the manifest.
ratechange (en-US) Event HTML5 media The playback rate has changed.
readystatechange (en-US) Event HTML5 and XMLHttpRequest The readyState attribute of a document has changed.
repeatEvent (en-US) TimeEvent (en-US) SVG A SMIL (en-US) animation element is repeated.
reset (en-US) Event DOM L2, HTML5 A form is reset.
resize (en-US) UIEvent (en-US) DOM L3 The document view has been resized.
scroll (en-US) UIEvent (en-US) DOM L3 The document view or an element has been scrolled.
seeked (en-US) Event HTML5 media A seek operation completed.
seeking (en-US) Event HTML5 media A seek operation began.
select (en-US) UIEvent (en-US) DOM L3 Some text is being selected.
show MouseEvent HTML5 A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute
stalled (en-US) Event HTML5 media The user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
storage (en-US) StorageEvent (en-US) Web Storage A storage area (localStorage (en-US) or sessionStorage (en-US)) has changed.
submit (en-US) Event DOM L2, HTML5 A form is submitted.
success Event IndexedDB A request successfully completed.
suspend (en-US) Event HTML5 media Media data loading has been suspended.
SVGAbort SVGEvent (en-US) SVG Page loading has been stopped before the SVG was loaded.
SVGError (en-US) SVGEvent (en-US) SVG An error has occurred before the SVG was loaded.
SVGLoad (en-US) SVGEvent (en-US) SVG An SVG document has been loaded and parsed.
SVGResize SVGEvent (en-US) SVG An SVG document is being resized.
SVGScroll SVGEvent (en-US) SVG An SVG document is being scrolled.
SVGUnload SVGEvent (en-US) SVG An SVG document has been removed from a window or frame.
SVGZoom SVGZoomEvent SVG An SVG document is being zoomed.
timeout ProgressEvent (en-US) XMLHttpRequest
timeupdate (en-US) Event HTML5 media The time indicated by the currentTime attribute has been updated.
touchcancel (en-US) TouchEvent (en-US) Touch Events A touch point has been disrupted in an implementation-specific manners (too many touch points for example).
touchend (en-US) TouchEvent (en-US) Touch Events A touch point is removed from the touch surface.
touchenter TouchEvent (en-US) Touch Events Removed A touch point is moved onto the interactive area of an element.
touchleave TouchEvent (en-US) Touch Events Removed A touch point is moved off the interactive area of an element.
touchmove (en-US) TouchEvent (en-US) Touch Events A touch point is moved along the touch surface.
touchstart (en-US) TouchEvent (en-US) Touch Events A touch point is placed on the touch surface.
transitionend (en-US) TransitionEvent (en-US) CSS Transitions A CSS transition (en-US) has completed.
unload (en-US) UIEvent (en-US) DOM L3 The document or a dependent resource is being unloaded.
updateready Event Offline The resources listed in the manifest have been newly redownloaded, and the script can use swapCache() to switch to the new cache.
upgradeneeded IndexedDB An attempt was made to open a database with a version number higher than its current version. A versionchange transaction has been created.
userproximity SensorEvent Sensor Fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not).
versionchange IndexedDB A versionchange transaction completed.
visibilitychange (en-US) Event Page visibility The content of a tab has become visible or has been hidden.
volumechange (en-US) Event HTML5 media The volume has changed.
waiting (en-US) Event HTML5 media Playback has stopped because of a temporary lack of data.
wheel (en-US) WheelEvent (en-US) DOM L3 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...
afterscriptexecute (en-US) Event Mozilla Specific A script has been executed.
beforescriptexecute (en-US) Event Mozilla Specific A script is about to be executed.
beforeinstallprompt Event Chrome specific A user is prompted to save a web site to a home screen on mobile.
cardstatechange Firefox OS specific The MozMobileConnection.cardState property changes value.
change (en-US) DeviceStorageChangeEvent Firefox OS specific This event is triggered each time a file is created, modified or deleted on a given storage area.
connectionInfoUpdate Firefox OS specific The informations about the signal strength and the link speed have been updated.
cfstatechange Firefox OS specific The call forwarding state changes.
datachange Firefox OS specific The MozMobileConnection.data object changes values.
dataerror Firefox OS specific The MozMobileConnection.data object receive an error from the RIL.
DOMMouseScroll (en-US) Deprecated Mozilla specific The wheel button of a pointing device is rotated (detail attribute is a number of lines). (use wheel (en-US) instead)
dragdrop Deprecated DragEvent Mozilla specific An element is dropped (use drop (en-US) instead).
dragexit Deprecated DragEvent Mozilla specific A drag operation is being ended(use dragend (en-US) instead).
draggesture Deprecated DragEvent Mozilla specific The user starts dragging an element or text selection (use dragstart (en-US) instead).
icccardlockerror Firefox OS specific the MozMobileConnection.unlockCardLock() or MozMobileConnection.setCardLock() methods fails.
iccinfochange Firefox OS specific The MozMobileConnection.iccInfo object changes.
localized Mozilla Specific The page has been localized using data-l10n-* attributes.
mousewheel (en-US) Deprecated IE invented The wheel button of a pointing device is rotated.
MozAudioAvailable Event Mozilla specific The audio buffer is full and the corresponding raw samples are available.
MozBeforeResize Mozilla specific A window is about to be resized.
mozbrowserclose Firefox OS specific Sent when window.close() is called within a browser iframe.
mozbrowsercontextmenu Firefox OS specific Sent when a browser <iframe> try to open a context menu.
mozbrowsererror Firefox OS specific Sent when an error occured while trying to load a content within a browser iframe
mozbrowsericonchange Firefox OS specific Sent when the favicon of a browser iframe changes.
mozbrowserlocationchange Firefox OS specific Sent when an browser iframe's location changes.
mozbrowserloadend Firefox OS specific Sent when the browser iframe has finished loading all its assets.
mozbrowserloadstart Firefox OS specific Sent when the browser iframe starts to load a new page.
mozbrowseropenwindow Firefox OS specific Sent when window.open() (en-US) is called within a browser iframe.
mozbrowsersecuritychange Firefox OS specific Sent when the SSL state changes within a browser iframe.
mozbrowsershowmodalprompt Firefox OS specific Sent when alert(), confirm() or prompt() are called within a browser iframe
mozbrowsertitlechange Firefox OS specific Sent when the document.title changes within a browser iframe.
MozGamepadButtonDown To be specified A gamepad button is pressed down.
MozGamepadButtonUp To be specified A gamepad button is released.
MozMousePixelScroll (en-US) Deprecated Mozilla specific The wheel button of a pointing device is rotated (detail attribute is a number of pixels). (use wheel instead)
MozOrientation Deprecated Mozilla specific Fresh data is available from an orientation sensor (see deviceorientation).
MozScrolledAreaChanged UIEvent (en-US) Mozilla specific The document view has been scrolled or resized.
moztimechange Mozilla specific The time of the device has been changed.
MozTouchDown Deprecated Mozilla specific A touch point is placed on the touch surface (use touchstart instead).
MozTouchMove Deprecated Mozilla specific A touch point is moved along the touch surface (use touchmove instead).
MozTouchUp Deprecated Mozilla specific A touch point is removed from the touch surface (use touchend instead).
alerting CallEvent To be specified The correspondent is being alerted (his/her phone is ringing).
busy CallEvent To be specified The line of the correspondent is busy.
callschanged CallEvent To be specified A call has been added or removed from the list of current calls.
onconnected connected CallEvent To be specified A call has been connected.
connecting CallEvent To be specified A call is about to connect.
delivered SMSEvent To be specified An SMS has been successfully delivered.
dialing CallEvent To be specified The number of a correspondent has been dialed.
disabled Firefox OS specific Wifi has been disabled on the device.
disconnected CallEvent To be specified A call has been disconnected.
disconnecting CallEvent To be specified A call is about to disconnect.
enabled Firefox OS specific Wifi has been enabled on the device.
error CallEvent To be specified An error occurred.
held CallEvent To be specified A call has been held.
holding CallEvent To be specified A call is about to be held.
incoming CallEvent To be specified A call is being received.
received SMSEvent To be specified An SMS has been received.
resuming CallEvent To be specified A call is about to resume.
sent SMSEvent To be specified An SMS has been sent.
statechange (en-US) CallEvent To be specified The state of a call has changed.
statuschange Firefox OS specific The status of the Wifi connection changed.
overflow UIEvent (en-US) 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).
smartcard-insert Mozilla specific A smartcard has been inserted.
smartcard-remove Mozilla specific A smartcard has been removed.
stkcommand Firefox OS specific The STK Proactive Command is issued from ICC.
stksessionend Firefox OS specific The STK Session is terminated by ICC.
text Mozilla Specific A generic composition event occurred.
underflow UIEvent (en-US) Mozilla specific An element is no longer overflowed by its content (only works for elements styled with overflow != visible).
uploadprogress Deprecated ProgressEvent (en-US) Mozilla Specific Upload is in progress (see progress (en-US)).
ussdreceived Firefox OS specific A new USSD message is received
voicechange Firefox OS specific The 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...
broadcast XUL An observer noticed a change to the attributes of a watched broadcaster.
CheckboxStateChange XUL The state of a checkbox has been changed either by a user action or by a script (useful for accessibility).
close XUL The close button of the window has been clicked.
command XUL An element has been activated.
commandupdate XUL A command update occurred on a commandset element.
DOMMenuItemActive XUL A menu or menuitem has been hovered or highlighted.
DOMMenuItemInactive XUL A menu or menuitem is no longer hovered or highlighted.
popuphidden PopupEvent XUL A menupopup, panel or tooltip has been hidden.
popuphiding PopupEvent XUL A menupopup, panel or tooltip is about to be hidden.
popupshowing PopupEvent XUL A menupopup, panel or tooltip is about to become visible.
popupshown PopupEvent XUL A menupopup, panel or tooltip has become visible.
RadioStateChange XUL The state of a radio has been changed either by a user action or by a script (useful for accessibility).
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 Addons specific A touch point is swiped across the touch surface
MozMagnifyGestureStart Addons specific Two touch points start to move away from each other.
MozMagnifyGestureUpdate Addons specific Two touch points move away from each other (after a MozMagnifyGestureStart).
MozMagnifyGesture Addons specific Two touch points moved away from each other (after a sequence of MozMagnifyGestureUpdate).
MozRotateGestureStart Addons specific Two touch points start to rotate around a point.
MozRotateGestureUpdate Addons specific Two touch points rotate around a point (after a MozRotateGestureStart).
MozRotateGesture Addons specific Two touch points rotate around a point (after a sequence of MozRotateGestureUpdate).
MozTapGesture Addons specific Two touch points are tapped on the touch surface.
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 Addons specific A touch point is swiped across the touch surface to invoke the edge UI (Win8 only).
MozAfterPaint Addons specific Content has been repainted.
DOMPopupBlocked Addons specific A popup has been blocked
DOMWindowCreated Addons specific A window has been created.
DOMWindowClose Addons specific A window is about to be closed.
DOMTitleChanged Addons specifc The title of a window has changed.
DOMLinkAdded Addons specifc A link has been added a document.
DOMLinkRemoved Addons specifc A link has been removed inside from a document.
DOMMetaAdded Addons specific A meta element has been added to a document.
DOMMetaRemoved Addons specific A meta element has been removed from a document.
DOMWillOpenModalDialog Addons specific A modal dialog is about to open.
DOMModalDialogClosed Addons specific A modal dialog has been closed.
DOMAutoComplete Addons specific The content of an element has been auto-completed.
DOMFrameContentLoaded Addons specific The frame has finished loading (but not its dependent resources).
AlertActive Addons specific A notification element is shown.
AlertClose Addons specific A notification element is closed.
fullscreen Addons specific Browser fullscreen mode has been entered or left.
sizemodechange Addons specific Window has entered/left fullscreen mode, or has been minimized/unminimized.
MozEnteredDomFullscreen Addons specific DOM fullscreen (en-US) mode has been entered.
SSWindowClosing Addons specific The session store will stop tracking this window.
SSTabClosing Addons specific The session store will stop tracking this tab.
SSTabRestoring Addons specific A tab is about to be restored.
SSTabRestored Addons specific A tab has been restored.
SSWindowStateReady Addons specific A window state has switched to "ready".
SSWindowStateBusy Addons specific A window state has switched to "busy".
tabviewsearchenabled Addons specific The search feature of Panorama has been activated
tabviewsearchdisabled Addons specific The search feature of Panorama has been deactivated
tabviewframeinitialized Addons specific The frame container of Panorama has been initialized
tabviewshown Addons specific The Panorama tab has been shown
tabviewhidden Addons specific The Panorama tab has been hidden
TabOpen Addons specific A tab has been opened.
TabClose Addons specific A tab has been closed.
TabSelect Addons specific A tab has been selected.
TabShow Addons specific A tab has been shown.
TabHide Addons specific A tab has been hidden.
TabPinned Addons specific A tab has been pinned.
TabUnpinned Addons specific A tab has been unpinned.

Developer tool-specific events

Event Name Event Type Specification Fired when...
CssRuleViewRefreshed devtools specific The "Rules" view of the style inspector has been updated.
CssRuleViewChanged devtools specific The "Rules" view of the style inspector has been changed.
CssRuleViewCSSLinkClicked devtools specific A link to a CSS file has been clicked in the "Rules" view of the style inspector.

Categories

Animation events

Battery events

Call events

CSS events

Database events

Document events

DOM mutation events

Drag events

Element events

Focus events

Form events

Frame events

Input device events

Media events

Network events

Notification events

Printing events

Progress events

Resource events

Script events

Sensor events

Session history events

Smartcard events

SMS and USSD events

Storage events

SVG events

Tab events

Text events

Touch events

Update events

Value change events

View events

Websocket events

Window events

Uncategorized events

See also