Referencia de Eventos
=====================

Los eventos se envían para notificar al código de cosas interesantes que han ocurrido. Cada evento está representado por un objeto que se basa en la interfaz `Event`, y puede tener campos y/o funciones personalizadas adicionales para obtener más información acerca de lo sucedido. Los eventos pueden representar cualquier cosa desde las interacciones básicas del usuario para notificaciones automatizadas de las cosas que suceden en el modelo de representación.

Este artículo ofrece una lista de eventos que se pueden enviar; algunos son eventos estándar definidos en las especificaciones oficiales, mientras que otros son eventos usados internamente por los navegadores específicos; por ejemplo, Eventos específicos de Mozilla se enumeran de manera que los complementos pueden usarlos para interactuar con el navegador.

Eventos Estándar
----------------

Estos eventos se definen en las especificaciones Web oficiales, y deben ser comunes en todos los navegadores. Cada evento aparece junto con la interfaz que representa el objeto enviado a los destinatarios del evento (por lo que puede encontrar información sobre los datos que se incluyen en cada caso), así como un enlace a la especificación o especificaciones que definen el evento.

| Nombre del evento | Tipo de evento | Especificación | Se activa al... |
| --- | --- | --- | --- |
| `abort` (en-US) | `UIEvent` | DOM L3 | La carga de un recurso ha sido abortada. |
| `abort` (en-US) | `ProgressEvent` (en-US) | Progress and XMLHttpRequest | La progresión se ha terminado (no debido a un error). |
| `abort` (en-US) | `Event` | IndexedDB | Una transacción ha sido abortada. |
| `afterprint` (en-US) | `Event` | HTML5 | El documento asociado ha iniciado la impresión o la vista previa de impresión de ha cerrado |
| `animationend` | `AnimationEvent` | CSS Animations | Una animation de CSS (en-US) ha terminado. |
| `animationiteration` (en-US) | `AnimationEvent` | CSS Animations | Una animation de CSS (en-US) se repite. |
| `animationstart` (en-US) | `AnimationEvent` | CSS Animations | Una animation de CSS (en-US) ha iniciado. |
| `audioprocess` (en-US) | `AudioProcessingEvent` (en-US) | Web Audio APILa definición de 'audioprocess' en esta especificación. | El búfer de entrada de un `ScriptProcessorNode` (en-US) está listo para ser procesado. |
| `beforeprint` (en-US) | `Event` | HTML5 | El documento asociado está a punto de ser impreso o previsualizado para imprimir. |
| `beforeunload` | `BeforeUnloadEvent` | HTML5 |  |
| `beginEvent` (en-US) | `TimeEvent` (en-US) | SVG | Inicia un elemento de animación SMIL (en-US). |
| `blocked` (en-US) |  | IndexedDB | Una conexión abierta en la base de datos está bloqueando una transacción `versionchange` en la misma base de datos. |
| `blur` | `FocusEvent` (en-US) | DOM L3 | Un elemento ha perdido el foco (does not bubble). |
| `cached` | `Event` | Offline | Los recursosn que aparecen en el manifiesto se han descargado, y la aplicación está ahora almacenada en caché. |
| `canplay` | `Event` | HTML5 media | La aplicación del usuario puede reproducir los medios, pero se estima que no hay datos suficientes, han sido cargados para reproducir el medio hasta el final sin tener que parar para una mayor amortiguación del contenido. |
| `canplaythrough` (en-US) | `Event` | HTML5 media | La aplicación de usuario puede reproducir los medios, y se estima que hay datos suficientes, han sido cargados para reproducir el medio hasta el final sin tener que parar para una mayor amortiguación del contenido |
| `change` (en-US) | `Event` | DOM L2, HTML5 | Un elemento perdió el foco y su valor cambio desde que obtuvo el foco. |
| `chargingchange` | `Event` | Battery status | La batería inició o dejo de cargar |
| `chargingtimechange` | `Event` | Battery status | El atributo `chargingTime` se ha actualizado. |
| `checking` | `Event` | Offline | La aplicación de usuario está comprobando una actualización o intenta descargar el manifiesto de caché por primera vez. |
| `click` | `MouseEvent` | DOM L3 | Un botón en el dispositivo señalador se ha pulsado y soltado en un elemento. |
| `close` | `Event` | WebSocket | Una conexión WeSocket se ha cerrado. |
| `compassneedscalibration` | `SensorEvent` | Orientation | La brujula usada para obtener los datos de la orientación en que está necesita calibración. |
| `complete` (en-US) |  | IndexedDB |  |
| `complete` (en-US) | `OfflineAudioCompletionEvent` (en-US) | IndexedDB | El renderizado de un `OfflineAudioContext` (en-US) finaliza. |
| `compositionend` (en-US) | `CompositionEvent` (en-US) | DOM L3 | La composición de un pasaje de texto se ha completado o cancelado. |
| `compositionstart` (en-US) | `CompositionEvent` (en-US) | DOM L3 | La composición de un pasaje de un texto está preparado (similar a KeyDown para una entrada de teclado, sino que trabaja con otros insumos, como el reconocimiento de voz). |
| `compositionupdate` (en-US) | `CompositionEvent` (en-US) | DOM L3 | Un carácter se añade a un pasaje de texto que está siendo compuesto. |
| `contextmenu` (en-US) | `MouseEvent` | HTML5 | Se hace clic en el botón derecho del ratón (antes de que aparezca el menú contextual). |
| `copy` (en-US) | `ClipboardEvent` | Clipboard | El texto seleccionado se ha agregado al porta papeles. |
| `cut` (en-US) | `ClipboardEvent` | Clipboard | El texto seleccionado ha sido borrado del documento y agregado al portapapeles. |
| `dblclick` (en-US) | `MouseEvent` | DOM L3 | Un botón del dispositivo señalador hace click dos veces en un elemento. |
| `devicelight` | `DeviceLightEvent` | Ambient Light Events | Datos nuevos están disponibles desde un sensor de luz. |
| `devicemotion` (en-US) | `DeviceMotionEvent` | Device Orientation Events | Datos nuevos están disponibles desde un sesor de movimiento. |
| `deviceorientation` (en-US) | `DeviceOrientationEvent` (en-US) | Device Orientation Events | Datos nuevos están disponibles desde un sensor de orientación. |
| `deviceproximity` | `DeviceProximityEvent` | Proximity Events | Datos nuevos están disponibles desde un sensor de proximidad (indica una distancia aproximada entre el dispositivo y un objeto cercano). |
| `dischargingtimechange` | `Event` | Battery status | El atributo `dischargingTime` se ha actualizado. |
| `DOMActivate` 
Obsoleto
 | `UIEvent` | DOM L3 | Un botón, enlace o elemento de estado cambiante esta activado (usa `click` en su lugar). |
| `DOMAttributeNameChanged` 
Obsoleto
 | `MutationNameEvent` | DOM L3 Removed | El nombre de un atributo cambiado (usa mutation observers (en-US) en su lugar). |
| `DOMAttrModified` 
Obsoleto
 | `MutationEvent` (en-US) | DOM L3 | El valor de un atributo ha sido cambiado (usa mutation observers (en-US) en su lugar). |
| `DOMCharacterDataModified` 
Obsoleto
 | `MutationEvent` (en-US) | DOM L3 | Un texto u otro CharacterData (en-US) ha sido cambiado (usa mutation observers (en-US) en su lugar). |
| `DOMContentLoaded` (en-US) | `Event` | HTML5 | El documento ha terminado de cargar (pero no sus recursos dependientes). |
| `DOMElementNameChanged` 
Obsoleto
 | `MutationNameEvent` | DOM L3 Removed | El nombre de un elemento dependiente (usa mutation observers (en-US) en su lugar). |
| `DOMFocusIn` 
Obsoleto
 | `FocusEvent` (en-US) | DOM L3 | Un elemento ha recibido el foco (usa `focus` (en-US) o `focusin` (en-US) en su lugar). |
| `DOMFocusOut` 
Obsoleto
 | `FocusEvent` (en-US) | DOM L3 | Un elemento ha perdido el foco (usa `blur` o `focusout` (en-US) en su lugar). |
| `DOMNodeInserted` 
Obsoleto
 | `MutationEvent` (en-US) | DOM L3 | Un nodo ha sido añadido como un hijo de otro nodo (usa mutation observers (en-US) en su lugar). |
| `DOMNodeInsertedIntoDocument` 
Obsoleto
 | `MutationEvent` (en-US) | DOM L3 | Un nodo ha sido insertado en el documento (usa mutation observers (en-US) en su lugar). |
| `DOMNodeRemoved` 
Obsoleto
 | `MutationEvent` (en-US) | DOM L3 | Un nodo ha sido eliminado de su nodo padre A node has been removed from its parent node (usa mutation observers (en-US) en su lugar). |
| `DOMNodeRemovedFromDocument` 
Obsoleto
 | `MutationEvent` (en-US) | DOM L3 | Un nodo ha sido eliminado del documento (usa mutation observers (en-US) en su lugar). |
| `DOMSubtreeModified` 
Obsoleto
 | `MutationEvent` (en-US) | DOM L3 | Ocurrio un cambio en el documento (usa mutation observers (en-US) en su lugar). |
| `downloading` | `Event` | Offline | La aplicación de usuario ha encontrado una actualización y está buscando o descargando los recursos enumerados en el caché del manifiesto por primera vez. |
| `drag` (en-US) | `DragEvent` | HTML5 | Un elemento o texto seleccionato está siendo arrastrado (cada 35ms). |
| `dragend` (en-US) | `DragEvent` | HTML5 | Una operación de arrastre ha finalizado (al pulsar un botón del ratón o pulsando la tecla escape). |
| `dragenter` (en-US) | `DragEvent` | HTML5 | Un elemento arrastrado o un texto seleccionado entró en un destino válido. |
| `dragleave` (en-US) | `DragEvent` | HTML5 | Un elemento arrastrado o un texto seleccionado salió de un destino válido. |
| `dragover` | `DragEvent` | HTML5 | Un elemento o texto seleccionado es arrastrado encima de un destino válido (cada 50ms). |
| `dragstart` (en-US) | `DragEvent` | HTML5 | El usuario empezó a arrastrar un elemento o un texto seleccionado. |
| `drop` (en-US) | `DragEvent` | HTML5 | Un elemento es soltado en un destino válido. |
| `durationchange` (en-US) | `Event` | HTML5 media | El atributo `duration` se ha actualizado. |
| `emptied` (en-US) | `Event` | HTML5 media | Los medios de comunicación se ha convertido en vacío, por ejemplo, este evento se envía si los medios de comunicación ya se ha cargado (o parcialmente cargado), y el método `load()` es llamado para volver a cargarlo. |
| `ended` (en-US) | `Event` | HTML5 media | La reproducción se ha detenido porque se ha alcanzado el final de los medios de comunicación. |
| `ended` (en-US) | `Event` | HTML5 media |  |
| `endEvent` (en-US) | `TimeEvent` (en-US) | SVG | Un elento de animación SMIL (en-US) termina. |
| `error` (en-US) | `UIEvent` | DOM L3 | Un recurso no se pudo cargar. |
| `error` (en-US) | `ProgressEvent` (en-US) | Progress and XMLHttpRequest | La progresión a fallado. |
| `error` (en-US) | `Event` | Offline | Se ha producido un error al descargar el manifiesto de caché o actualizar el contenido de la aplicación. |
| `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` | `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` | `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. |
| `levelchange` | `Event` | Battery status | The `level` attribute has been updated. |
| `load` | `UIEvent` | DOM L3 | A resource and its dependent resources have finished loading. |
| `load` (en-US) | `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` | `ProgressEvent` (en-US) | Progress and XMLHttpRequest | Progress has stopped (after "error", "abort" or "load" have been dispatched). |
| `loadstart` (en-US) | `ProgressEvent` (en-US) | Progressand XMLHttpRequest | Progress has begun. |
| `message` (en-US) | `MessageEvent` | WebSocket | A message is received through a WebSocket. |
| `message` (en-US) | `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` (en-US) | `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` (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` (en-US) | `Event` | WebSocket | A WebSocket connection has been established. |
| `open` (en-US) | `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` | `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` | DOM L3 | The document view has been resized. |
| `scroll` | `UIEvent` | 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` | 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` (en-US) | `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` | `Event` | HTML5 media | The time indicated by the `currentTime` attribute has been updated. |
| `touchcancel` (en-US) | `TouchEvent` | Touch Events | A touch point has been disrupted in an implementation-specific manners (too many touch points for example). |
| `touchend` (en-US) | `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` (en-US) | `TouchEvent` | Touch Events | A touch point is moved along the touch surface. |
| `touchstart` (en-US) | `TouchEvent` | Touch Events | A touch point is placed on the touch surface. |
| `transitionend` | `TransitionEvent` (en-US) | CSS Transitions | A CSS transition (en-US) has completed. |
| `unload` (en-US) | `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` (en-US) |  | 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` (en-US) |  | 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` | `WheelEvent` | DOM L3 | A wheel button of a pointing device is rotated in any direction. |

Eventos no estándar
-------------------

| Nombre del evento | Tipo de evento | Especificación | Se activa al... |
| --- | --- | --- | --- |
| `afterscriptexecute` (en-US) | `Event` | *Mozilla Specific* | A script has been executed. |
| `beforescriptexecute` (en-US) | `Event` | *Mozilla Specific* | A script is about to be executed. |
| `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) 
Obsoleto
 |  | *Mozilla specific* | The wheel button of a pointing device is rotated (detail attribute is a number of lines). (use `wheel` instead) |
| `dragdrop` 
Obsoleto
 | `DragEvent` | *Mozilla specific* | An element is dropped (use `drop` (en-US) instead). |
| `dragexit` 
Obsoleto
 | `DragEvent` | *Mozilla specific* | A drag operation is being ended(use `dragend` (en-US) instead). |
| `draggesture` 
Obsoleto
 | `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) 
Obsoleto
 |  | *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. |
| `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` (en-US) 
Obsoleto
 |  | *Mozilla specific* | The wheel button of a pointing device is rotated (detail attribute is a number of pixels). (use wheel instead) |
| `MozOrientation` 
Obsoleto
 |  | *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 
Obsoleto
 |  | *Mozilla specific* | A touch point is placed on the touch surface (use touchstart instead). |
| MozTouchMove 
Obsoleto
 |  | *Mozilla specific* | A touch point is moved along the touch surface (use touchmove instead). |
| MozTouchUp 
Obsoleto
 |  | *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` | *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` 
Obsoleto
 | `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 de Mozilla
------------------------------

**Nota:** Nota: los eventos nunca están expuestos a contenidos web y sólo se pueden utilizar en el contexto de contenido de chrome.

### Eventos XUL

| Nombre del evento | Tipo de Evento | Especificación | Se activa al... |
| --- | --- | --- | --- |
| `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). |

### Eventos específicos de complementos

| Nombre del eveto | Tipo de evento | Especificación | Se activa al... |
| --- | --- | --- | --- |
| 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. |
| MozBeforeResize |  | *Addons specific* | A window is about to be resized. |
| 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. |

### Eventos específicos de la herramienta para desarrolladores

| 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. |

Categorías
----------

### Eventos de Animación

`animationend`, `animationiteration` (en-US), `animationstart` (en-US), `beginEvent` (en-US), `endEvent` (en-US), `repeatEvent` (en-US)

### Eventos de Batería

`chargingchange`, `chargingtimechange`, `dischargingtimechange`, `levelchange`

### Eventos de Llamadas

`alerting`, `busy`, `callschanged`, `cfstatechange`, onconnected `connected`, `connecting`, `dialing`, `disconnected`, `disconnecting`, `error`, `held`, `holding`, `incoming`, `resuming`, `statechange` (en-US), `voicechange`

### Eventos CSS

CssRuleViewRefreshed, CssRuleViewChanged, CssRuleViewCSSLinkClicked, `transitionend`

### Eventos de Bases de datos

`abort` (en-US), `blocked` (en-US), `complete` (en-US), `error` (en-US), `success` (en-US), `upgradeneeded` (en-US), `versionchange` (en-US)

### Eventos de Documento

DOMLinkAdded, DOMLinkRemoved, DOMMetaAdded, DOMMetaRemoved, DOMWillOpenModalDialog, DOMModalDialogClosed, `unload` (en-US)

### Eventos de mutación DOM

code>DOMAttributeNameChanged, `DOMAttrModified`, `DOMCharacterDataModified`, `DOMContentLoaded` (en-US), `DOMElementNameChanged`, `DOMNodeInserted`, `DOMNodeInsertedIntoDocument`, `DOMNodeRemoved`, `DOMNodeRemovedFromDocument`, `DOMSubtreeModified`

### Eventos de Arrastre

`drag` (en-US), `dragdrop`, `dragend` (en-US), `dragenter` (en-US), `dragexit`, `draggesture`, `dragleave` (en-US), `dragover`, `dragstart` (en-US), `drop` (en-US)

### Eventos de Elemento

`invalid` (en-US), `overflow`, `underflow`", DOMAutoComplete, `command`, `commandupdate`

### Eventos de Foco

`blur`, `change` (en-US), `DOMFocusIn`, `DOMFocusOut`, `focus` (en-US), `focusin` (en-US), `focusout` (en-US)

### Eventos de Formulario

`reset` (en-US), `submit` (en-US)

### Eventos de Fotograma

`mozbrowserclose`, `mozbrowsercontextmenu`, `mozbrowsererror`, `mozbrowsericonchange`, `mozbrowserlocationchange`, `mozbrowserloadend`, `mozbrowserloadstart`, `mozbrowseropenwindow`, `mozbrowsersecuritychange`, `mozbrowsershowmodalprompt`, `mozbrowsertitlechange`, DOMFrameContentLoaded

### Eventos de dispositivo de entrada

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

### Eventos de Medios

`audioprocess` (en-US), `canplay`, `canplaythrough` (en-US), `durationchange` (en-US), `emptied` (en-US), `ended` (en-US), `ended` (en-US), `loadeddata` (en-US), `loadedmetadata` (en-US), `MozAudioAvailable`, `pause` (en-US), `play` (en-US), `playing` (en-US), `ratechange` (en-US), `seeked` (en-US), `seeking` (en-US), `stalled` (en-US), `suspend` (en-US), `timeupdate`, `volumechange` (en-US), `waiting` (en-US), `complete` (en-US)

### Eventos de Menú

`DOMMenuItemActive`, `DOMMenuItemInactive`

### Eventos de Red

`datachange`, `dataerror`, `disabled`, `enabled`, `offline` (en-US), `online` (en-US), `statuschange`, `connectionInfoUpdate`,

### Eventos de Notificación

AlertActive, AlertClose

### Eventos Popup

`popuphidden`, `popuphiding`, `popupshowing`, `popupshown`, DOMPopupBlocked

### Eventos de Impresión

`afterprint` (en-US), `beforeprint` (en-US)

### Eventos de Progreso

`abort` (en-US), `error` (en-US), `load` (en-US), `loadend`, `loadstart` (en-US), `progress` (en-US), `progress`, `timeout`, `uploadprogress`

### Eventos de Recursos

`abort` (en-US), `cached`, `error` (en-US), `load`

### Eventos de Secuencia de Comandos

`afterscriptexecute` (en-US), `beforescriptexecute` (en-US)

### Eventos de Sensor

`compassneedscalibration`, `devicelight`, `devicemotion` (en-US), `deviceorientation` (en-US), `deviceproximity`, `MozOrientation`, `orientationchange` (en-US), `userproximity`

### Eventos del Historial de sesión

`pagehide` (en-US), `pageshow` (en-US), `popstate` (en-US)

### Eventos de Tarjeta de memoria

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

### Eventos SMS y USSD

`delivered`, `received`, `sent`, `ussdreceived`

### Eventos de almacenamiento

`change` (en-US), `storage` (en-US)

### Eventos SVG

`SVGAbort`, `SVGError` (en-US), `SVGLoad` (en-US), `SVGResize`, `SVGScroll`, `SVGUnload`, `SVGZoom`

### Eventos de Pestañas

tabviewsearchenabled, tabviewsearchdisabled, tabviewframeinitialized, tabviewshown, tabviewhidden, TabOpen, TabClose, TabSelect, TabShow, TabHide, TabPinned, TabUnpinned, SSTabClosing, SSTabRestoring, SSTabRestored, `visibilitychange` (en-US)

### Eventos de Texto

`compositionend` (en-US), `compositionstart` (en-US), `compositionupdate` (en-US), `copy` (en-US), `cut` (en-US), `paste` (en-US), `select` (en-US), `text`

### Eventos de Toque

MozEdgeUIGesture, MozMagnifyGesture, MozMagnifyGestureStart, MozMagnifyGestureUpdate, MozPressTapGesture, MozRotateGesture, MozRotateGestureStart, MozRotateGestureUpdate, MozSwipeGesture, MozTapGesture, MozTouchDown, MozTouchMove, MozTouchUp,4 `touchcancel` (en-US), `touchend` (en-US), `touchenter`, `touchleave`, `touchmove` (en-US), `touchstart` (en-US)

### Eventos de Actualización

`checking`, `downloading`, `error` (en-US), `noupdate`, `obsolete`, `updateready`

### Eventos de Cámbio de valor

`broadcast`, `CheckboxStateChange`, `hashchange`, `input` (en-US), `RadioStateChange`, `readystatechange` (en-US), `ValueChange`

### Eventos de Visualización

fullscreen, `fullscreenchange` (en-US), `fullscreenerror` (en-US), MozEnteredDomFullscreen, `MozScrolledAreaChanged`, `resize` (en-US), `scroll`, sizemodechange

### Eventos de Websocket

`close`, `error` (en-US), `message` (en-US), `open` (en-US)

### Eventos de Ventana

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

### Eventos sin categorizar

`beforeunload`, `localized`, `message` (en-US), `message`, `message` (en-US), MozAfterPaint, `moztimechange`, `open` (en-US), `show`

Ver también
-----------

* `Event`
* Event developer guide