Extended by Node, Window, EventSource, WebSocket, MessagePort, BroadcastChannel, AudioTrackList, VideoTrackList, MediaController, TextTrackList, TextTrack, TextTrackCue, ApplicationCache, WorkerGlobalScope, Worker, SharedWorker, FileReader, IDBRequest, IDBDatabase, IDBTransaction, SVGElementInstance, SVGElementInstance
EventTarget is an object to which an event is dispatched when something has occurred. Each EventTarget has an associated list of event listeners.
Operations | |
---|---|
void | addEventListener(DOMString type, EventListener? callback, optional boolean capture) |
boolean | dispatchEvent(Event event) |
void | removeEventListener(DOMString type, EventListener? callback, optional boolean capture) |
Referenced by | |
---|---|
Event | target |
RelatedEvent | relatedTarget |
RelatedEventInit | relatedTarget |