EventTarget
https://dom.spec.whatwg.org/#interface-eventtarget
Extended by
MediaKeySession
SourceBuffer
MediaSourceInterface
TextTrackCue
AudioTrackList
VideoTrackList
TextTrackList
Methods
addEventListener()
addEventListener(
type
,listener
,options
?):void
Adds an event listener.
Parameters
type
string
The event to listen to.
listener
The Event Handler function.
options?
Ignore.
boolean |
AddEventListenerOptions |
Returns
void
dispatchEvent()?
optional
dispatchEvent(event
):boolean
Dispatches an event to the target
Parameters
event
The event which signals an occurrenceo.
Returns
boolean
TODO
Add and define in the implementations, keep it optional for now.
removeEventListener()
removeEventListener(
type
,listener
,options
?):void
Removes an event listener.
Parameters
type
string
The event to listen to.
listener
The Event Handler function to be removed.
options?
Ignore.
boolean |
EventListenerOptions |
Returns
void
Last updated: Sep 30, 2025