--- title: Event reference slug: Web/Events tags: - Mozilla - NeedsTranslation - Reference - Référence(2) - TopicStub - Web translation_of: Web/Events ---
DOM-Events werden gesendet, um Code von interessanten Dingen, welche stattgefunden haben, anzuzeigen. Jedes Event wird durch ein Objekt dargestellt, das auf der {{domxref ("Event")}}-Schnittstelle basiert und möglicherweise zusätzliche benutzerdefinierte Felder und/oder Funktionen enthält, die dazu benutzt werden, um zusätzliche Informationen darüber zu erhalten, was genau passiert ist. Events können alles repräsentieren, angefangen von einfachen Benutzerinteraktionen bis hin zu automatisierten Benachrichtigungen über Abläufe, die im Rendering-Modell stattgefunden haben.
Dieser Artikel zeigt eine Liste von Events, die gesendet werden können; einige sind Standard-Events, definiert in offiziellen Spezifikationen, während andere solche Events sind, die intern von bestimmten Browsern verwendet werden. Beispielswese werden Mozilla-spezifische Events aufgelistet, so dass add-ons sie verwenden werden können, um mit dem Browser zu interagieren.
Diese Ereignisse werden in offiziellen Web-Spezifikationen definiert und sollten in allen Browsern gemeinsam sein. Jedes Ereignis wird zusammen mit der Schnittstelle aufgelistet, die das Objekt darstellt, das an die Empfänger des Ereignisses gesendet wird (so können Sie Informationen darüber finden, welche Daten mit jedem Ereignis bereitgestellt werden) sowie einen Link zu der Spezifikation oder Spezifikationen, die das Ereignis definieren.
Event Name | Event Typ | Spezifikation | Wird abgefeuert wenn... |
---|---|---|---|
{{event("abort")}} | {{domxref("UIEvent")}} | DOM L3 | The loading of a resource has been aborted. |
abort |
{{domxref("ProgressEvent")}} | Progress and XMLHttpRequest | Progression has been terminated (not due to an error). |
abort |
{{domxref("Event")}} | IndexedDB | A transaction has been aborted. |
{{event("afterprint")}}{{gecko_minversion_inline("6")}} | {{domxref("Event")}} | HTML5 | The associated document has started printing or the print preview has been closed. |
{{event("animationend")}} | {{domxref("AnimationEvent")}} | CSS Animations | A CSS animation has completed. |
{{event("animationiteration")}} | {{domxref("AnimationEvent")}} | CSS Animations | A CSS animation is repeated. |
{{event("animationstart")}} | {{domxref("AnimationEvent")}} | CSS Animations | A 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")}} | HTML5 | The associated document is about to be printed or previewed for printing. |
{{event("beforeunload")}} | {{domxref("BeforeUnloadEvent")}} | HTML5 | |
{{event("beginEvent")}} | {{domxref("TimeEvent")}} | SVG | A SMIL animation element begins. |
blocked |
IndexedDB | An open connection to a database is blocking a versionchange transaction on the same database. |
|
{{event("blur")}} | {{domxref("FocusEvent")}} | DOM L3 | An element has lost focus (does not bubble). |
{{event("cached")}} | {{domxref("Event")}} | Offline | The resources listed in the manifest have been downloaded, and the application is now cached. |
{{event("canplay")}} | {{domxref("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. |
{{event("canplaythrough")}} | {{domxref("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. |
{{event("change")}} | {{domxref("Event")}} | DOM L2, HTML5 | An element loses focus and its value changed since gaining focus. |
{{event("chargingchange")}} | {{domxref("Event")}} | Battery status | The battery begins or stops charging. |
{{event("chargingtimechange")}} | {{domxref("Event")}} | Battery status | The chargingTime attribute has been updated. |
{{event("checking")}} | {{domxref("Event")}} | 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 | A pointing device button has been pressed and released on an element. |
close |
{{domxref("Event")}} | WebSocket | A WebSocket connection has been closed. |
{{event("compassneedscalibration")}} | {{domxref("SensorEvent")}} | Orientation | The compass used to obtain orientation data is in need of calibration. |
complete |
IndexedDB | ||
{{event("complete")}} | {{domxref("OfflineAudioCompletionEvent")}} | {{SpecName('Web Audio API', '#OfflineAudioCompletionEvent-section', 'OfflineAudioCompletionEvent')}} | The rendering of an {{domxref("OfflineAudioContext")}} is terminated. |
{{event("compositionend")}} | {{domxref("CompositionEvent")}} | DOM L3 | The composition of a passage of text has been completed or canceled. |
{{event("compositionstart")}}{{gecko_minversion_inline("9")}} | {{domxref("CompositionEvent")}} | 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). |
{{event("compositionupdate")}}{{gecko_minversion_inline("9")}} | {{domxref("CompositionEvent")}} | DOM L3 | A character is added to a passage of text being composed. |
{{event("contextmenu")}} | {{domxref("MouseEvent")}} | HTML5 | The right button of the mouse is clicked (before the context menu is displayed). |
{{event("copy")}} | {{domxref("ClipboardEvent")}} | Clipboard | The text selection has been added to the clipboard. |
{{event("cut")}} | {{domxref("ClipboardEvent")}} | Clipboard | The text selection has been removed from the document and added to the clipboard. |
{{event("dblclick")}} | {{domxref("MouseEvent")}} | DOM L3 | A pointing device button is clicked twice on an element. |
{{event("devicelight")}} | {{domxref("DeviceLightEvent")}} | Ambient Light Events | Fresh data is available from a light sensor. |
{{event("devicemotion")}} | {{domxref("DeviceMotionEvent")}} | Device Orientation Events | Fresh data is available from a motion sensor. |
{{event("deviceorientation")}} | {{domxref("DeviceOrientationEvent")}} | Device Orientation Events | Fresh data is available from an orientation sensor. |
{{event("deviceproximity")}} | {{domxref("DeviceProximityEvent")}} | Proximity Events | 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 | The dischargingTime attribute has been updated. |
DOMActivate {{deprecated_inline}} |
{{domxref("UIEvent")}} | DOM L3 | A button, link or state changing element is activated (use {{event("click")}} instead). |
DOMAttributeNameChanged {{deprecated_inline}} |
{{domxref("MutationNameEvent")}} | DOM L3 Removed | The name of an attribute changed (use mutation observers instead). |
DOMAttrModified {{deprecated_inline}} |
{{domxref("MutationEvent")}} | DOM L3 | The value of an attribute has been modified (use mutation observers instead). |
DOMCharacterDataModified {{deprecated_inline}} |
{{domxref("MutationEvent")}} | DOM L3 | A text or another CharacterData has changed (use mutation observers instead). |
{{event("DOMContentLoaded")}} | {{domxref("Event")}} | HTML5 | The document has finished loading (but not its dependent resources). |
DOMElementNameChanged {{deprecated_inline}} |
{{domxref("MutationNameEvent")}} | DOM L3 Removed | The name of an element changed (use mutation observers instead). |
DOMFocusIn {{deprecated_inline}} |
{{domxref("FocusEvent")}} | DOM L3 | An element has received focus (use {{event("focus")}} or {{event("focusin")}} instead). |
DOMFocusOut {{deprecated_inline}} |
{{domxref("FocusEvent")}} | DOM L3 | An element has lost focus (use {{event("blur")}} or {{event("focusout")}} instead). |
DOMNodeInserted {{deprecated_inline}} |
{{domxref("MutationEvent")}} | DOM L3 | A node has been added as a child of another node (use mutation observers instead). |
DOMNodeInsertedIntoDocument {{deprecated_inline}} |
{{domxref("MutationEvent")}} | DOM L3 | A node has been inserted into the document (use mutation observers instead). |
DOMNodeRemoved {{deprecated_inline}} |
{{domxref("MutationEvent")}} | DOM L3 | A node has been removed from its parent node (use mutation observers instead). |
DOMNodeRemovedFromDocument {{deprecated_inline}} |
{{domxref("MutationEvent")}} | DOM L3 | A node has been removed from the document (use mutation observers instead). |
DOMSubtreeModified {{deprecated_inline}} |
{{domxref("MutationEvent")}} | DOM L3 | A change happened in the document (use mutation observers instead). |
{{event("downloading")}} | {{domxref("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. |
{{event("drag")}} | {{domxref("DragEvent")}} | HTML5 | An element or text selection is being dragged (every 350ms). |
{{event("dragend")}} | {{domxref("DragEvent")}} | HTML5 | A drag operation is being ended (by releasing a mouse button or hitting the escape key). |
{{event("dragenter")}} | {{domxref("DragEvent")}} | HTML5 | A dragged element or text selection enters a valid drop target. |
{{event("dragleave")}} | {{domxref("DragEvent")}} | HTML5 | A dragged element or text selection leaves a valid drop target. |
{{event("dragover")}} | {{domxref("DragEvent")}} | HTML5 | An element or text selection is being dragged over a valid drop target (every 350ms). |
{{event("dragstart")}} | {{domxref("DragEvent")}} | HTML5 | The user starts dragging an element or text selection. |
{{event("drop")}} | {{domxref("DragEvent")}} | HTML5 | An element is dropped on a valid drop target. |
{{event("durationchange")}} | {{domxref("Event")}} | HTML5 media | The duration attribute has been updated. |
{{event("emptied")}} | {{domxref("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. |
{{event("ended")}} | {{domxref("Event")}} | HTML5 media | 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 | A SMIL animation element ends. |
{{event("error")}} | {{domxref("UIEvent")}} | DOM L3 | A resource failed to load. |
{{event("error")}} | {{domxref("ProgressEvent")}} | Progress and XMLHttpRequest | Progression has failed. |
{{event("error")}} | {{domxref("Event")}} | Offline | An error occurred while downloading the cache manifest or updating the content of the application. |
{{event("error")}} | {{domxref("Event")}} | WebSocket | A WebSocket connection has been closed with prejudice (some data couldn't be sent for example). |
{{event("error")}} | {{domxref("Event")}} | Server Sent Events | An event source connection has been failed. |
{{event("error")}} | {{domxref("Event")}} | IndexedDB | A request caused an error and failed. |
{{event("focus")}} | {{domxref("FocusEvent")}} | DOM L3 | An element has received focus (does not bubble). |
{{event("focusin")}} | {{domxref("FocusEvent")}} | DOM L3 | An element is about to receive focus (bubbles). |
{{event("focusout")}} | {{domxref("FocusEvent")}} | DOM L3 | An element is about to lose focus (bubbles). |
{{event("fullscreenchange")}}{{gecko_minversion_inline("9")}} | {{domxref("Event")}} | Full Screen | An element was turned to fullscreen mode or back to normal mode. |
{{event("fullscreenerror")}}{{gecko_minversion_inline("9")}} | {{domxref("Event")}} | Full Screen | It was impossible to switch to fullscreen mode for technical reasons or because the permission was denied. |
{{event("gamepadconnected")}} | {{domxref("GamepadEvent")}} | Gamepad | A gamepad has been connected. |
{{event("gamepaddisconnected")}} | {{domxref("GamepadEvent")}} | Gamepad | A gamepad has been disconnected. |
{{event("hashchange")}} | {{domxref("HashChangeEvent")}} | HTML5 | The fragment identifier of the URL has changed (the part of the URL after the #). |
{{event("input")}} | {{domxref("Event")}} | HTML5 | The value of an element changes or the content of an element with the attribute contenteditable is modified. |
{{event("invalid")}} | {{domxref("Event")}} | HTML5 | A submittable element has been checked and doesn't satisfy its constraints. |
{{event("keydown")}} | {{domxref("KeyboardEvent")}} | DOM L3 | A key is pressed down. |
{{event("keypress")}} | {{domxref("KeyboardEvent")}} | DOM L3 | A key is pressed down and that key normally produces a character value (use input instead). |
{{event("keyup")}} | {{domxref("KeyboardEvent")}} | DOM L3 | A key is released. |
{{event("languagechange")}} | {{domxref("Event")}} | {{ SpecName('HTML5.1', '#dom-navigator-languages', 'NavigatorLanguage.languages') }} | |
{{event("levelchange")}} | {{domxref("Event")}} | Battery status | The level attribute has been updated. |
{{event("load")}} | {{domxref("UIEvent")}} | DOM L3 | A resource and its dependent resources have finished loading. |
load |
{{domxref("ProgressEvent")}} | Progress and XMLHttpRequest | Progression has been successful. |
{{event("loadeddata")}} | {{domxref("Event")}} | HTML5 media | The first frame of the media has finished loading. |
{{event("loadedmetadata")}} | {{domxref("Event")}} | HTML5 media | The metadata has been loaded. |
{{event("loadend")}} | {{domxref("ProgressEvent")}} | Progress and XMLHttpRequest | Progress has stopped (after "error", "abort" or "load" have been dispatched). |
{{event("loadstart")}} | {{domxref("ProgressEvent")}} | Progress and XMLHttpRequest | Progress has begun. |
message |
{{domxref("MessageEvent")}} | WebSocket | A message is received through a WebSocket. |
message |
{{domxref("MessageEvent")}} | Web Workers | A message is received from a Web Worker. |
message |
{{domxref("MessageEvent")}} | Web Messaging | A message is received from a child (i)frame or a parent window. |
message |
{{domxref("MessageEvent")}} | Server Sent Events | A message is received through an event source. |
{{event("mousedown")}} | {{domxref("MouseEvent")}} | DOM L3 | A pointing device button (usually a mouse) is pressed on an element. |
{{event("mouseenter")}} | {{domxref("MouseEvent")}} | DOM L3 | A pointing device is moved onto the element that has the listener attached. |
{{event("mouseleave")}} | {{domxref("MouseEvent")}} | DOM L3 | A pointing device is moved off the element that has the listener attached. |
{{event("mousemove")}} | {{domxref("MouseEvent")}} | DOM L3 | A pointing device is moved over an element. |
{{event("mouseout")}} | {{domxref("MouseEvent")}} | DOM L3 | 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 | 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 | A pointing device button is released over an element. |
{{event("noupdate")}} | {{domxref("Event")}} | Offline | The manifest hadn't changed. |
{{event("obsolete")}} | {{domxref("Event")}} | 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 | The browser has lost access to the network. |
{{event("online")}} | {{domxref("Event")}} | HTML5 offline | The browser has gained access to the network (but particular websites might be unreachable). |
open |
{{domxref("Event")}} | WebSocket | A WebSocket connection has been established. |
open |
{{domxref("Event")}} | Server Sent Events | An event source connection has been established. |
{{event("orientationchange")}} | {{domxref("Event")}} | Screen Orientation | The orientation of the device (portrait/landscape) has changed |
{{event("pagehide")}} | {{domxref("PageTransitionEvent")}} | HTML5 | A session history entry is being traversed from. |
{{event("pageshow")}} | {{domxref("PageTransitionEvent")}} | HTML5 | A session history entry is being traversed to. |
{{event("paste")}} | {{domxref("ClipboardEvent")}} | Clipboard | Data has been transfered from the system clipboard to the document. |
{{event("pause")}} | {{domxref("Event")}} | HTML5 media | Playback has been paused. |
{{event("pointerlockchange")}} | {{domxref("Event")}} | Pointer Lock | The pointer was locked or released. |
{{event("pointerlockerror")}} | {{domxref("Event")}} | Pointer Lock | It was impossible to lock the pointer for technical reasons or because the permission was denied. |
{{event("play")}} | {{domxref("Event")}} | HTML5 media | Playback has begun. |
{{event("playing")}} | {{domxref("Event")}} | HTML5 media | Playback is ready to start after having been paused or delayed due to lack of data. |
{{event("popstate")}} | {{domxref("PopStateEvent")}} | HTML5 | A session history entry is being navigated to (in certain cases). |
{{event("progress")}} | {{domxref("ProgressEvent")}} | Progress and XMLHttpRequest | In progress. |
progress |
{{domxref("ProgressEvent")}} | Offline | The user agent is downloading resources listed by the manifest. |
{{event("ratechange")}} | {{domxref("Event")}} | HTML5 media | The playback rate has changed. |
{{event("readystatechange")}} | {{domxref("Event")}} | HTML5 and XMLHttpRequest | The readyState attribute of a document has changed. |
{{event("repeatEvent")}} | {{domxref("TimeEvent")}} | SVG | A SMIL animation element is repeated. |
{{event("reset")}} | {{domxref("Event")}} | DOM L2, HTML5 | A form is reset. |
{{event("resize")}} | {{domxref("UIEvent")}} | DOM L3 | The document view has been resized. |
{{event("scroll")}} | {{domxref("UIEvent")}} | DOM L3 | The document view or an element has been scrolled. |
{{event("seeked")}} | {{domxref("Event")}} | HTML5 media | A seek operation completed. |
{{event("seeking")}} | {{domxref("Event")}} | HTML5 media | A seek operation began. |
{{event("select")}} | {{domxref("UIEvent")}} | DOM L3 | Some text is being selected. |
{{event("show")}} | {{domxref("MouseEvent")}} | HTML5 | A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute |
{{event("stalled")}} | {{domxref("Event")}} | HTML5 media | The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. |
{{event("storage")}} | {{domxref("StorageEvent")}} | Web Storage | A storage area (localStorage or sessionStorage) has changed. |
{{event("submit")}} | {{domxref("Event")}} | DOM L2, HTML5 | A form is submitted. |
success |
{{domxref("Event")}} | IndexedDB | A request successfully completed. |
{{event("suspend")}} | {{domxref("Event")}} | HTML5 media | Media data loading has been suspended. |
{{event("SVGAbort")}} | {{domxref("SVGEvent")}} | SVG | Page loading has been stopped before the SVG was loaded. |
{{event("SVGError")}} | {{domxref("SVGEvent")}} | SVG | An error has occurred before the SVG was loaded. |
{{event("SVGLoad")}} | {{domxref("SVGEvent")}} | SVG | An SVG document has been loaded and parsed. |
{{event("SVGResize")}} | {{domxref("SVGEvent")}} | SVG | An SVG document is being resized. |
{{event("SVGScroll")}} | {{domxref("SVGEvent")}} | SVG | An SVG document is being scrolled. |
{{event("SVGUnload")}} | {{domxref("SVGEvent")}} | SVG | An SVG document has been removed from a window or frame. |
{{event("SVGZoom")}} | {{domxref("SVGZoomEvent")}} | SVG | An SVG document is being zoomed. |
{{event("timeout")}} | {{domxref("ProgressEvent")}} | XMLHttpRequest | |
{{event("timeupdate")}} | {{domxref("Event")}} | HTML5 media | The time indicated by the currentTime attribute has been updated. |
{{event("touchcancel")}} | {{domxref("TouchEvent")}} | 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 | A touch point is removed from the touch surface. |
{{event("touchenter")}} | {{domxref("TouchEvent")}} | Touch Events Removed | A touch point is moved onto the interactive area of an element. |
{{event("touchleave")}} | {{domxref("TouchEvent")}} | Touch Events Removed | A touch point is moved off the interactive area of an element. |
{{event("touchmove")}} | {{domxref("TouchEvent")}} | Touch Events | A touch point is moved along the touch surface. |
{{event("touchstart")}} | {{domxref("TouchEvent")}} | Touch Events | A touch point is placed on the touch surface. |
{{event("transitionend")}} | {{domxref("TransitionEvent")}} | CSS Transitions | A CSS transition has completed. |
{{event("unload")}} | {{domxref("UIEvent")}} | DOM L3 | The document or a dependent resource is being unloaded. |
{{event("updateready")}} | {{domxref("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. |
|
{{event("userproximity")}} | {{domxref("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. |
|
{{event("visibilitychange")}} | {{domxref("Event")}} | Page visibility | The content of a tab has become visible or has been hidden. |
{{event("volumechange")}} | {{domxref("Event")}} | HTML5 media | The volume has changed. |
{{event("waiting")}} | {{domxref("Event")}} | HTML5 media | Playback has stopped because of a temporary lack of data. |
{{event("wheel")}}{{gecko_minversion_inline("17")}} | {{domxref("WheelEvent")}} | DOM L3 | A wheel button of a pointing device is rotated in any direction. |
Event Name | Event Type | 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("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 | 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 | The page has been localized using data-l10n-* attributes. | |
{{event("mousewheel")}}{{deprecated_inline}} | IE invented | 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 {{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 {{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 | 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 | 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 | 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 has been inserted. | |
{{event("smartcard-remove")}} | Mozilla specific | A smartcard 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. |
Note: those events are never exposed to web content and can only be used in chrome content context.
Event Name | Event Type | Specification | Fired when... |
---|---|---|---|
{{event("broadcast")}} | XUL | 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 | 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 | A menupopup, panel or tooltip has been hidden. |
{{event("popuphiding")}} | PopupEvent |
XUL | A menupopup, panel or tooltip is about to be hidden. |
{{event("popupshowing")}} | PopupEvent |
XUL | A menupopup, panel or tooltip is about to become visible. |
{{event("popupshown")}} | PopupEvent |
XUL | 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). |
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. |
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. |
{{event("animationend")}}, {{event("animationiteration")}}, {{event("animationstart")}}, {{event("beginEvent")}}, {{event("endEvent")}}, {{event("repeatEvent")}}
{{event("chargingchange")}} {{event("chargingtimechange")}}, {{event("dischargingtimechange")}} {{event("levelchange")}}
{{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")}}
CssRuleViewRefreshed, CssRuleViewChanged, CssRuleViewCSSLinkClicked, {{event("transitionend")}}
abort
, blocked
, complete
, {{event("error")}} (link), success
, upgradeneeded
, versionchange
DOMLinkAdded, DOMLinkRemoved, DOMMetaAdded, DOMMetaRemoved, DOMWillOpenModalDialog, DOMModalDialogClosed, {{event("unload")}}
code>DOMAttributeNameChanged, DOMAttrModified
, DOMCharacterDataModified
, {{event("DOMContentLoaded")}}, DOMElementNameChanged
, DOMNodeInserted
, DOMNodeInsertedIntoDocument
, DOMNodeRemoved
, DOMNodeRemovedFromDocument
, DOMSubtreeModified
{{event("drag")}}, dragdrop
, {{event("dragend")}}, {{event("dragenter")}}, dragexit
, draggesture
, {{event("dragleave")}}, {{event("dragover")}}, {{event("dragstart")}}, {{event("drop")}}
{{event("invalid")}}, {{event("overflow")}}, {{event("underflow")}}, DOMAutoComplete, {{event("command")}}, {{event("commandupdate")}}
{{event("blur")}}, {{event("change")}}, DOMFocusIn
, DOMFocusOut
, {{event("focus")}}, {{event("focusin")}}, {{event("focusout")}}
{{event("reset")}}, {{event("submit")}}
{{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("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("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("DOMMenuItemActive")}}, {{event("DOMMenuItemInactive")}}
{{event("datachange")}}, {{event("dataerror")}}, {{event("disabled")}}, {{event("enabled")}}, {{event("offline")}}, {{event("online")}}, {{event("statuschange")}}, {{event("connectionInfoUpdate")}},
{{event("popuphidden")}}, {{event("popuphiding")}}, {{event("popupshowing")}}, {{event("popupshown")}}, DOMPopupBlocked
{{event("afterprint")}}, {{event("beforeprint")}}
abort
, {{event("error")}}, load
, {{event("loadend")}}, {{event("loadstart")}}, {{event("progress")}}, progress
, {{event("timeout")}}, uploadprogress
{{event("abort")}}, {{event("cached")}}, {{event("error")}}, {{event("load")}}
{{event("afterscriptexecute")}}, {{event("beforescriptexecute")}}
{{event("compassneedscalibration")}}, {{event("devicelight")}}, {{event("devicemotion")}}, {{event("deviceorientation")}}, {{event("deviceproximity")}}, {{event("MozOrientation")}}, {{event("orientationchange")}}, {{event("userproximity")}}
{{event("pagehide")}}, {{event("pageshow")}}, {{event("popstate")}}
{{event("icccardlockerror")}}, {{event("iccinfochange")}}, {{event("smartcard-insert")}}, {{event("smartcard-remove")}}, {{event("stkcommand")}}, {{event("stksessionend")}}, {{event("cardstatechange")}}
{{event("delivered")}}, {{event("received")}}, {{event("sent")}}, {{event("ussdreceived")}}
{{event("change")}}, {{event("storage")}}
{{event("SVGAbort")}}, {{event("SVGError")}}, {{event("SVGLoad")}}, {{event("SVGResize")}}, {{event("SVGScroll")}}, {{event("SVGUnload")}}, {{event("SVGZoom")}}
tabviewsearchenabled, tabviewsearchdisabled, tabviewframeinitialized, tabviewshown, tabviewhidden, TabOpen, TabClose, TabSelect, TabShow, TabHide, TabPinned, TabUnpinned, SSTabClosing, SSTabRestoring, SSTabRestored, {{event("visibilitychange")}}
{{event("compositionend")}}, {{event("compositionstart")}}, {{event("compositionupdate")}}, {{event("copy")}}, {{event("cut")}}, {{event("paste")}}, {{event("select")}}, text
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("checking")}}, {{event("downloading")}}, {{event("error")}}, {{event("noupdate")}}, {{event("obsolete")}}, {{event("updateready")}}
{{event("broadcast")}}, {{event("CheckboxStateChange")}}, {{event("hashchange")}}, {{event("input")}}, {{event("RadioStateChange")}}, {{event("readystatechange")}}, {{event("ValueChange")}}
fullscreen, {{event("fullscreenchange")}}, {{event("fullscreenerror")}}, MozEnteredDomFullscreen, {{event("MozScrolledAreaChanged")}}, {{event("resize")}}, {{event("scroll")}}, sizemodechange
close
, {{event("error")}}, message
, open
DOMWindowCreated, DOMWindowClose, DOMTitleChanged, MozBeforeResize {{obsolete_inline}}, SSWindowClosing, SSWindowStateReady, SSWindowStateBusy, close
{{event("beforeunload")}}, {{event("localized")}}, message
, message
, message
, MozAfterPaint, {{event("moztimechange")}}, open
, {{event("show")}}