CustomEvent
The CustomEvent interface represents events initialized by an application for any purpose.
Note: This feature is available in Web Workers
Constructor
CustomEvent()-
Creates a new
CustomEvent.
Instance properties
This interface inherits properties from its parent, Event.
CustomEvent.detailRead only-
Returns any data passed when initializing the event.
Instance methods
This interface inherits methods from its parent, Event.
CustomEvent.initCustomEvent()Deprecated-
Initializes a
CustomEventobject. If the event has already been dispatched, this method does nothing.
Specifications
| Specification |
|---|
| DOM Standard # interface-customevent |
Browser compatibility
BCD tables only load in the browser