Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

Référence des événements

Cette traduction est incomplète. Aidez à traduire cet article depuis l'anglais.

Les événements sont notifiés au code source lorsque quelque chose d'intéressant se passe. Chaque événement est représenté par un objet implémentant l'interface Event, et peut avoir d'autres propriétés et/ou champs, permettant d'obtenir des informations supplémentaires au sujet de ce qui s'est produit. Les événements peuvent décrire de simples interactions avec l'utilisateur jusqu'à des notifications automatisées d'événements se produisant au niveau du modèle de rendu.

Cet article présente une liste d'événements pouvant être notifiés ; certains correspondent à des événements standards définis dans les spécifications officielles, tandis que d'autres sont des événements utilisés en interne par certains navigateurs ; par exemple, les événements propres à Mozilla sont listés pour que les add-ons puissent interagir avec le navigateur.

Événements standards

Ces événements sont définis dans les spécifications officielles du web, et devraient donc être communs à tous les navigateurs. À chaque événement est associée l'interface implémentée par l'objet envoyé aux destinataires de l'événement (afin de pouvoir connaître les données fournies avec chaque événement), ainsi qu'un lien vers la ou les spécification(s) définissant l'événement.

Nom de l'événement Type de l'événement Spécification Déclenché lorsque...
abort UIEvent DOM L3 Le chargement d'une ressource a été interrompu.
abort ProgressEvent Progress et XMLHttpRequest La progression a été interrompue (pas dû à une erreur).
abort Event IndexedDB Une transaction a été interrompue.
afterprint Event HTML5 Le document associé a commencé à être imprimé ou l'aperçu avant impression a été fermé.
animationend AnimationEvent CSS Animations Une animation CSS s'est achevée.
animationiteration AnimationEvent CSS Animations Une animation CSS est répétée.
animationstart AnimationEvent CSS Animations Une animation CSS a débuté.
audioprocess AudioProcessingEvent Web Audio API
La définition de 'audioprocess' dans cette spécification.
La mémoire tampon d'entrée d'un ScriptProcessorNode est prête à être lue.
beforeprint Event HTML5 Le document associé est sur le point d'être imprimé ou visualisé dans l'aperçu avant impression.
beforeunload BeforeUnloadEvent HTML5  
beginEvent TimeEvent SVG Une animation SMIL débute.
blocked   IndexedDB Une connexion ouverte vers la base de données bloque une transation versionchange (changement de version) sur la même base de données.
blur FocusEvent DOM L3 Un élément perd le focus (ne se propage pas).
cached Event Offline Les ressources listées dans le manifeste ont été téléchargées, et l'application est désormais mise en cache.
canplay Event HTML5 media Le user agent peut lire le média, mais estime que trop peu de données ont été chargées pour lire le média jusqu'au bout sans avoir à s'arrêter pour mettre en mémoire tampon la suite du contenu.
canplaythrough Event HTML5 media Le user agent peut lire le média, et estime que suffisamment de données ont été chargées pour lire le média jusqu'au bout sans avoir à s'arrêter pour mettre en mémoire tampon la suite du contenu.
change Event DOM L2, HTML5 Un élément perd le focus et sa valeur a changé depuis l'acquisition du focus.
chargingchange Event Battery status La batterie commence ou finit de charger.
chargingtimechange Event Battery status L'attribut chargingTime (temps de chargement) a été mis à jour.
checking Event Offline Le user agent vérifie l'existence d'une mise à jour, ou tente de télécharger le manifeste du cache pour la première fois.
click MouseEvent DOM L3 Un bouton d'un dispositif de pointage a été appuyé ou relaché sur un élément.
close Event WebSocket Une connexion WebSocket a été fermée.
compassneedscalibration Non implémenté SensorEvent Orientation La boussole permettant d'obtenir les données d'orientation doit être calibrée.
complete   IndexedDB  
complete OfflineAudioCompletionEvent Web Audio API
La définition de 'OfflineAudioCompletionEvent' dans cette spécification.
Le rendu d'un OfflineAudioContext est terminé.
compositionend CompositionEvent DOM L3 La composition d'un passage de texte a été achevée ou annulée.
compositionstart CompositionEvent DOM L3 La composition d'un passage de texte est prête (équivalent à l'événement keydown pour un clavier, mais fonctionne avec d'autres entrées comme la reconnaissance vocale).
compositionupdate CompositionEvent DOM L3 Un caractère est ajouté à un passage de texte en cours de composition.
contextmenu MouseEvent HTML5 Le bouton droit de la souris est cliqué (avant l'affichage du menu contextuel).
copy ClipboardEvent Clipboard La sélection de texte a été ajoutée au presse-papiers.
cut ClipboardEvent Clipboard La sélection de texte a été enlevée du document et ajoutée au presse-papiers.
dblclick MouseEvent DOM L3 Un bouton d'un dispositif de pointage a été double-cliqué sur un élément.
devicelight DeviceLightEvent Ambient Light Events Le capteur de lumière a de nouvelles données disponibles.
devicemotion DeviceMotionEvent Device Orientation Events Le capteur de mouvement a de nouvelles données disponibles.
deviceorientation DeviceOrientationEvent Device Orientation Events Le capteur d'orientation a de nouvelles données disponibles.
deviceproximity DeviceProximityEvent Proximity Events Le capteur de proximité a de nouvelles données disponibles (indique une distance approximative entre l'appareil et un object avoisinant).
dischargingtimechange Event Battery status L'attribut dischargingTime (temps de décharge) a été mis à jour.
DOMActivate UIEvent DOM L3 Un bouton, un lien ou un élément à changement d'état est activé (utiliser plutôt click).
DOMAttributeNameChanged MutationNameEvent DOM L3 Removed Le nom d'un attribut a changé (utiliser plutôt les observateurs de mutation).
DOMAttrModified MutationEvent DOM L3 La valeur d'un attribut a été modifiée (utiliser plutôt les observateurs de mutation).
DOMCharacterDataModified MutationEvent DOM L3 Un texte - ou autres Données caractère - a été changé (utiliser plutôt les observateurs de mutation).
DOMContentLoaded Event HTML5 Le document a fini de charger (mais pas les ressources qui en dépendent).
DOMElementNameChanged MutationNameEvent DOM L3 Removed Le nom d'un élément a changé (utiliser plutôt les observateurs de mutation).
DOMFocusIn Non implémenté FocusEvent DOM L3 Un élément a acquis le focus (utiliser plutôt focus ou focusin).
DOMFocusOut Non implémenté FocusEvent DOM L3 Un élément a perdu le focus (utiliser plutôt blur ou focusout).
DOMNodeInserted MutationEvent DOM L3 Un nœud a été ajouté comme enfant d'un autre nœud (utiliser plutôt les observateurs de mutation).
DOMNodeInsertedIntoDocument MutationEvent DOM L3 Un nœud a été ajouté au document (utiliser plutôt les observateurs de mutation).
DOMNodeRemoved MutationEvent DOM L3 Un nœud a été retiré de son nœud parent (utiliser plutôt les observateurs de mutation).
DOMNodeRemovedFromDocument MutationEvent DOM L3 Un nœud a été retiré du document (utiliser plutôt les observateurs de mutation).
DOMSubtreeModified MutationEvent DOM L3 Un changement a eu lieu dans le document (utiliser plutôt les observateurs de mutation).
downloading Event Offline Le user agent a trouvé une mise à jour et la récupère, ou il télécharge les ressources listées dans le manifeste du cache pour la première fois.
drag DragEvent HTML5 Un élément ou la sélection de texte est glissé (toutes les 350ms).
dragend DragEvent HTML5 Un glisser-déposer a été achevé (en relâchant le bouton de la souris ou en appuyant sur la touche Echap).
dragenter DragEvent HTML5 Un élément ou une sélection de texte en cours de glisser-déposer entre dans une zone valide de dépôt.
dragleave DragEvent HTML5 Un élément ou une sélection de texte en cours de glisser-déposer quitte une zone valide de dépôt.
dragover DragEvent HTML5 Un élément ou une sélection de texte en cours de glisser-déposer survole une zone valide de dépôt (toutes les 350ms).
dragstart DragEvent HTML5 L'utilisateur commence à glisser un élément ou une sélection de texte.
drop DragEvent HTML5 Un élément est déposé sur une zone valide de dépôt.
durationchange Event HTML5 media L'attribut duration (durée) a été mis à jour.
emptied Event HTML5 media Le média a été vidé ; par exemple, cet événement est déclenché si un média a déjà été chargé (au moins partiellement) et que la méthode load() (charger) est appelée pour le recharger.
ended Event HTML5 media La lecture a été interrompue car la fin du média a été atteinte.
ended Event Web Audio API  
endEvent TimeEvent SVG Une animation SMIL est terminé.
error UIEvent DOM L3 Le chargement d'une ressource a échoué.
error ProgressEvent Progress et XMLHttpRequest La progression a échoué.
error Event Offline Une erreur a eu lieu lors du téléchargement du manifeste de cache ou lors de la mise à jour du contenu de l'application.
error Event WebSocket Une connexion WebSocket a été fermée avec préjudice (par exemple, des données n'ont pas pu être envoyées).
error Event Server Sent Events Une connexion de la source d'événement a échoué.
error Event IndexedDB Une requête a causé une erreur et a échoué.
focus FocusEvent DOM L3 Un élément a acquis le focus (ne se propage pas).
focusinNon implémenté (voir bug 687787) FocusEvent DOM L3 Un élément est sur le point d'acquérir le focus (se propage).
focusoutNon implémenté (voir bug 687787) FocusEvent DOM L3 Un élément est sur le point de perdre le focus (se propage).
fullscreenchange Event Full Screen Un élément est passé en mode plein écran, ou est revenu au mode normal.
fullscreenerror Event Full Screen Il est impossible de passer en mode plein écran pour des raisons techniques ou parce que la permission a été refusée.
gamepadconnected GamepadEvent Gamepad Une manette de jeu a été connectée.
gamepaddisconnected GamepadEvent Gamepad Une manette de jeu a été déconnectée.
hashchange HashChangeEvent HTML5 The fragment identifier of the URL has changed (the part of the URL after the #).
input Event HTML5 The value of an element changes or the content of an element with the attribute contenteditable is modified.
invalid Event HTML5 A submittable element has been checked and doesn't satisfy its constraints.
keydown KeyboardEvent DOM L3 A key is pressed down.
keypress KeyboardEvent DOM L3 A key is pressed down and that key normally produces a character value (use input instead).
keyup KeyboardEvent DOM L3 A key is released.
languagechange Event HTML5.1
La définition de 'NavigatorLanguage.languages' dans cette spécification.
 
levelchange Event Battery status The level attribute has been updated.
load UIEvent DOM L3 A resource and its dependent resources have finished loading.
load ProgressEvent Progress et XMLHttpRequest Progression has been successful.
loadeddata Event HTML5 media The first frame of the media has finished loading.
loadedmetadata Event HTML5 media The metadata has been loaded.
loadend ProgressEvent Progress et XMLHttpRequest Progress has stopped (after "error", "abort" or "load" have been dispatched).
loadstart ProgressEvent Progress et XMLHttpRequest Progress has begun.
message MessageEvent WebSocket A message is received through a WebSocket.
message MessageEvent Web Workers A message is received from a Web Worker.
message MessageEvent Web Messaging A message is received from a child (i)frame or a parent window.
message MessageEvent Server Sent Events A message is received through an event source.
mousedown MouseEvent DOM L3 A pointing device button (usually a mouse) is pressed on an element.
mouseenter MouseEvent DOM L3 A pointing device is moved onto the element that has the listener attached.
mouseleave MouseEvent DOM L3 A pointing device is moved off the element that has the listener attached.
mousemove MouseEvent DOM L3 A pointing device is moved over an element.
mouseout MouseEvent DOM L3 A pointing device is moved off the element that has the listener attached or off one of its children.
mouseover MouseEvent DOM L3 A pointing device is moved onto the element that has the listener attached or onto one of its children.
mouseup 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 Event HTML5 offline The browser has lost access to the network.
online 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 Event Screen Orientation The orientation of the device (portrait/landscape) has changed
pagehide PageTransitionEvent HTML5 A session history entry is being traversed from.
pageshow PageTransitionEvent HTML5 A session history entry is being traversed to.
paste ClipboardEvent Clipboard Data has been transfered from the system clipboard to the document.
pause Event HTML5 media Playback has been paused.
pointerlockchange Event Pointer Lock The pointer was locked or released.
pointerlockerror Event Pointer Lock It was impossible to lock the pointer for technical reasons or because the permission was denied.
play Event HTML5 media Playback has begun.
playing Event HTML5 media Playback is ready to start after having been paused or delayed due to lack of data.
popstate PopStateEvent HTML5 A session history entry is being navigated to (in certain cases).
progress ProgressEvent Progress and XMLHttpRequest In progress.
progress ProgressEvent Offline The user agent is downloading resources listed by the manifest.
ratechange Event HTML5 media The playback rate has changed.
readystatechange Event HTML5 et XMLHttpRequest The readyState attribute of a document has changed.
repeatEvent TimeEvent SVG A SMIL animation element is repeated.
reset Event DOM L2, HTML5 A form is reset.
resize UIEvent DOM L3 The document view has been resized.
scroll UIEvent DOM L3 The document view or an element has been scrolled.
seeked Event HTML5 media A seek operation completed.
seeking Event HTML5 media A seek operation began.
select UIEvent 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 Event HTML5 media The user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
storage StorageEvent Web Storage A storage area (localStorage or sessionStorage) has changed.
submit Event DOM L2, HTML5 A form is submitted.
success Event IndexedDB A request successfully completed.
suspend Event HTML5 media Media data loading has been suspended.
SVGAbort SVGEvent SVG Page loading has been stopped before the SVG was loaded.
SVGError SVGEvent SVG An error has occurred before the SVG was loaded.
SVGLoad SVGEvent SVG An SVG document has been loaded and parsed.
SVGResize SVGEvent SVG An SVG document is being resized.
SVGScroll SVGEvent SVG An SVG document is being scrolled.
SVGUnload SVGEvent SVG An SVG document has been removed from a window or frame.
SVGZoom SVGZoomEvent SVG An SVG document is being zoomed.
timeout ProgressEvent XMLHttpRequest  
timeupdate Event HTML5 media The time indicated by the currentTime attribute has been updated.
touchcancel TouchEvent Touch Events A touch point has been disrupted in an implementation-specific manners (too many touch points for example).
touchend TouchEvent Touch Events A touch point is removed from the touch surface.
touchenter TouchEvent Touch Events Removed A touch point is moved onto the interactive area of an element.
touchleave TouchEvent Touch Events Removed A touch point is moved off the interactive area of an element.
touchmove TouchEvent Touch Events A touch point is moved along the touch surface.
touchstart TouchEvent Touch Events A touch point is placed on the touch surface.
transitionend TransitionEvent CSS Transitions A CSS transition has completed.
unload UIEvent 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 Event Page visibility The content of a tab has become visible or has been hidden.
volumechange Event HTML5 media The volume has changed.
waiting Event HTML5 media Playback has stopped because of a temporary lack of data.
wheel WheelEvent DOM L3 A wheel button of a pointing device is rotated in any direction.

Non-standard events

Event Name Event Type Specification Fired when...
afterscriptexecute Event Mozilla Specific A script has been executed.
beforescriptexecute Event Mozilla Specific A script is about to be executed.
cardstatechange   Firefox OS specific The MozMobileConnection.cardState property changes value.
change 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   Mozilla specific The wheel button of a pointing device is rotated (detail attribute is a number of lines). (use wheel instead)
dragdrop DragEvent Mozilla specific An element is dropped (use drop instead).
dragexit DragEvent Mozilla specific A drag operation is being ended(use dragend instead).
draggesture DragEvent Mozilla specific The user starts dragging an element or text selection (use dragstart 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 Non implémenté   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() 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   Mozilla specific The wheel button of a pointing device is rotated (detail attribute is a number of pixels). (use wheel instead)
MozOrientation   Mozilla specific Fresh data is available from an orientation sensor (see deviceorientation).
MozScrolledAreaChanged UIEvent Mozilla specific The document view has been scrolled or resized.
moztimechange   Mozilla specific The time of the device has been changed.
MozTouchDown   Mozilla specific A touch point is placed on the touch surface (use touchstart instead).
MozTouchMove   Mozilla specific A touch point is moved along the touch surface (use touchmove instead).
MozTouchUp   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 CallEvent To be specified The state of a call has changed.
statuschange   Firefox OS specific The status of the Wifi connection changed.
overflow 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).
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 Mozilla specific An element is no longer overflowed by its content (only works for elements styled with overflow != visible).
uploadprogress ProgressEvent Mozilla Specific Upload is in progress (see progress).

ussdreceived

  Firefox OS specific A new USSD message is received
voicechange   Firefox OS specific The MozMobileConnection.voice object changes values.

Mozilla-specific events

Note: those events are never exposed to web content and can only be used in chrome content context.

XUL events

Event Name Event Type Specification Fired when...
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 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

animationend, animationiteration, animationstart, beginEvent, endEvent, repeatEvent

Battery events

chargingchange chargingtimechange, dischargingtimechange levelchange

Call events

alerting, busy, callschanged cfstatechange, connected, connecting, dialing, disconnected, disconnecting, error, held, holding, incoming, resuming, statechange, voicechange

CSS events

CssRuleViewRefreshed, CssRuleViewChanged, CssRuleViewCSSLinkClicked, transitionend

Database events

abort, blocked, complete, error (link), success, upgradeneeded, versionchange

Document events

DOMLinkAdded, DOMLinkRemoved, DOMMetaAdded, DOMMetaRemoved, DOMWillOpenModalDialog, DOMModalDialogClosed, unload

DOM mutation events

code>DOMAttributeNameChanged, DOMAttrModified, DOMCharacterDataModified, DOMContentLoaded, DOMElementNameChanged, DOMNodeInserted, DOMNodeInsertedIntoDocument, DOMNodeRemoved, DOMNodeRemovedFromDocument, DOMSubtreeModified

Drag events

drag, dragdrop, dragend, dragenter, dragexit, draggesture, dragleave, dragover, dragstart, drop

Element events

invalid, overflow, underflow, DOMAutoComplete, command, commandupdate

Focus events

blur, change, DOMFocusIn, DOMFocusOut, focus, focusin, focusout

Form events

reset, submit

Frame events

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

Input device events

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

Media events

audioprocess, canplay, canplaythrough, durationchange, emptied, ended, ended, loadeddata, loadedmetadata, MozAudioAvailable, pause, play, playing, ratechange, seeked, seeking, stalled, suspend, timeupdate, volumechange, waiting, complete

DOMMenuItemActive, DOMMenuItemInactive

Network events

datachange, dataerror, disabled, enabled, offline, online, statuschange, connectionInfoUpdate,

Notification events

AlertActive, AlertClose

popuphidden, popuphiding, popupshowing, popupshown, DOMPopupBlocked

Printing events

afterprint, beforeprint

Progress events

abort, error, load, loadend, loadstart, progress, progress, timeout, uploadprogress

Resource events

abort, cached, error, load

Script events

afterscriptexecute, beforescriptexecute

Sensor events

compassneedscalibration, devicelight, devicemotion, deviceorientation, deviceproximity, MozOrientation, orientationchange, userproximity

Session history events

pagehide, pageshow, popstate

Smartcard events

icccardlockerror, iccinfochange, smartcard-insert, smartcard-remove, stkcommand, stksessionend, cardstatechange

SMS and USSD events

delivered, received, sent, ussdreceived

Storage events

change, storage

SVG events

SVGAbort, SVGError, SVGLoad, SVGResize, SVGScroll, SVGUnload, SVGZoom

Tab events

tabviewsearchenabled, tabviewsearchdisabled, tabviewframeinitialized, tabviewshown, tabviewhidden, TabOpen, TabClose, TabSelect, TabShow, TabHide, TabPinned, TabUnpinned, SSTabClosing, SSTabRestoring, SSTabRestored, visibilitychange

Text events

compositionend, compositionstart, compositionupdate, copy, cut, paste, select, text

Touch events

MozEdgeUIGesture, MozMagnifyGesture, MozMagnifyGestureStart, MozMagnifyGestureUpdate, MozPressTapGesture, MozRotateGesture, MozRotateGestureStart, MozRotateGestureUpdate, MozSwipeGesture, MozTapGesture, MozTouchDown, MozTouchMove, MozTouchUp, touchcancel, touchend, touchenter, touchleave, touchmove, touchstart

Update events

checking, downloading, error, noupdate, obsolete, updateready

Value change events

broadcast, CheckboxStateChange, hashchange, input, RadioStateChange, readystatechange, ValueChange

View events

fullscreen, fullscreenchange, fullscreenerror, MozEnteredDomFullscreen, MozScrolledAreaChanged, resize, scroll, sizemodechange

Websocket events

close, error, message, open

Window events

DOMWindowCreated, DOMWindowClose, DOMTitleChanged, MozBeforeResize , SSWindowClosing, SSWindowStateReady, SSWindowStateBusy, close

Uncategorized events

beforeunload, localized, message, message, message, MozAfterPaint, moztimechange, open, show

See also

Étiquettes et contributeurs liés au document

 Contributeurs à cette page : AlainRinder
 Dernière mise à jour par : AlainRinder,