CustomEvent

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

La interfaz CustomEvent representa eventos que son inicializados por una aplicación para cualquier propósito.

Nota: Esta característica está disponible en Web Workers.

Event CustomEvent

Constructor

CustomEvent()

Crea un nuevo CustomEvent.

Propiedades

Esta interfaz hereda las propiedades de su padre, Event.

CustomEvent.detail Read only

Devuelve cualquier dato pasado al inicializar el evento.

Métodos

Esta interfaz hereda las propiedades de su padre, Event.

CustomEvent.initCustomEvent() Obsoleto

Inicializa un objeto CustomEvent. Si el evento ya ha sido enviado, este método no hace nada.

Especificaciones

Specification
DOM
# interface-customevent

Compatibilidad del navegador

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
CustomEvent
CustomEvent() constructor
detail
initCustomEvent
Deprecated
Available in workers

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.

Ver también