The CustomEvent
interface represents events initialized by an application for any purpose.
Note: This feature is available in Web Workers
The CustomEvent
interface represents events initialized by an application for any purpose.
Note: This feature is available in Web Workers
CustomEvent()
Creates a new CustomEvent
.
This interface inherits properties from its parent, Event
.
CustomEvent.detail
Read only
Returns any data passed when initializing the event.
This interface inherits methods from its parent, Event
.
CustomEvent.initCustomEvent()
Deprecated
Initializes a CustomEvent
object. If the event has already been dispatched, this method does nothing.
Specification |
---|
DOM Standard # interface-customevent |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
CustomEvent |
15 | 12 | 11 | No | 11.6 | 6 | 4.4 | 18 | 14 | 12 | 6 | 1.0 |
CustomEvent |
5 | 12 | 6 | 9 | 11 | 5 | 3 | 18 | 6 | 11 | 5 | 1.0 |
detail |
5 | 12 | 6 | 9 | 11.6 | 5 | 3 | 18 | 6 | 12 | 5 | 1.0 |
initCustomEvent |
5 | 12 | 6 | 9 | 11 | 5 | 3 | 18 | 6 | 11 | 5 | 7.0 |
worker_support |
43 | 17 | 48 | No | 30 | 12 | 43 | 43 | 48 | 30 | 12 | 4.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent