Definition
DOM Standard defines EventTarget
[Exposed=*]
interface EventTarget {
constructor();
undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
boolean dispatchEvent(Event event);
};
This interface is extended in the following specifications:
- Observable
partial interface EventTarget { Observable when(DOMString type, optional ObservableEventListenerOptions options = {}); };
Consolidated IDL (across mixin and partials)
[Exposed=*]
interface EventTarget {
constructor();
undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
boolean dispatchEvent(Event event);
Observable when(DOMString type, optional ObservableEventListenerOptions options = {});
};
Methods and attributes that return objects implementing EventTarget
Referring IDL interfaces/dictionaries
AbortSignal
Animation
AudioDecoder
AudioEncoder
AudioNode
AudioRenderCapacity
AudioSession
AudioTrackList
BackgroundFetchRegistration
BaseAudioContext
BatteryManager
Bluetooth
BluetoothDevice
BluetoothRemoteGATTCharacteristic
BluetoothRemoteGATTService
BroadcastChannel
CSSPseudoElement
CaptureController
Clipboard
CloseWatcher
CookieStore
DevicePosture
DocumentPictureInPicture
EditContext
Event
EventSource
FileReader
FocusEvent
FocusEventInit
FontFaceSet
GPUDevice
HID
HIDDevice
IDBDatabase
IDBRequest
IDBTransaction
IdleDetector
Keyboard
MIDIAccess
MIDIPort
MediaDevices
MediaKeySession
MediaQueryList
MediaRecorder
MediaSource
MediaStream
MediaStreamTrack
MessagePort
MouseEvent
MouseEventInit
NDEFReader
NamedFlow
Navigation
NavigationEvent
NavigationEventInit
NavigationHistoryEntry
NavigatorManagedData
NetworkInformation
Node
Notification
OffscreenCanvas
PaymentRequest
PaymentResponse
Performance
PermissionStatus
PictureInPictureWindow
PortalHost
PreferenceObject
PresentationAvailability
PresentationConnection
PresentationConnectionList
PresentationRequest
Profiler
RTCDTMFSender
RTCDataChannel
RTCDtlsTransport
RTCIceTransport
RTCPeerConnection
RTCRtpScriptTransformer
RTCSctpTransport
RemotePlayback
SFrameTransform
ScreenDetails
ScreenOrientation
Sensor
Serial
SerialPort
ServiceWorker
ServiceWorkerContainer
ServiceWorkerRegistration
SharedWorker
SourceBuffer
SourceBufferList
SpeechRecognition
SpeechSynthesis
SpeechSynthesisUtterance
TextTrack
TextTrackCue
TextTrackList
Touch
TouchInit
USB
VideoDecoder
VideoEncoder
VideoTrackList
VirtualKeyboard
VisualViewport
WakeLockSentinel
WebSocket
Window
WindowControlsOverlay
Worker
WorkerGlobalScope
XMLHttpRequestEventTarget
XRLayer
XRLightProbe
XRSession
XRSpace
XRSystem
Referring specifications
- HTML Standard refers to
EventTarget
- Notifications API Standard refers to
EventTarget
- Web NFC refers to
EventTarget
- Web Bluetooth refers to
EventTarget
- WebSockets Standard refers to
EventTarget
- Background Fetch refers to
EventTarget
- Cookie Store API refers to
EventTarget
- Document Picture-in-Picture Specification refers to
EventTarget
- Idle Detection API refers to
EventTarget
- JS Self-Profiling API refers to
EventTarget
- Keyboard Lock refers to
EventTarget
- Network Information API refers to
EventTarget
- Observable refers to
EventTarget
- Portals refers to
EventTarget
- Web Serial API refers to
EventTarget
- Web Speech API refers to
EventTarget
- Managed Configuration API refers to
EventTarget
- WebHID API refers to
EventTarget
- WebUSB API refers to
EventTarget
- Window Controls Overlay refers to
EventTarget
- Audio Session refers to
EventTarget
- Battery Status API refers to
EventTarget
- Clipboard API and events refers to
EventTarget
- CSS Font Loading Module Level 3 refers to
EventTarget
- CSS Spatial Navigation Level 1 refers to
EventTarget
- CSS Pseudo-Elements Module Level 4 refers to
EventTarget
- CSS Regions Module Level 1 refers to
EventTarget
- CSSOM View Module refers to
EventTarget
- Device Posture API refers to
EventTarget
- EditContext API refers to
EventTarget
- Encrypted Media Extensions refers to
EventTarget
- File API refers to
EventTarget
- Generic Sensor API refers to
EventTarget
- High Resolution Time refers to
EventTarget
- Indexed Database API 3.0 refers to
EventTarget
- Media Source Extensions™ refers to
EventTarget
- Media Capture and Streams refers to
EventTarget
- Media Queries Level 5 refers to
EventTarget
- MediaStream Recording refers to
EventTarget
- Payment Request API refers to
EventTarget
- Permissions refers to
EventTarget
- Picture-in-Picture refers to
EventTarget
- Presentation API refers to
EventTarget
- Remote Playback API refers to
EventTarget
- Screen Capture refers to
EventTarget
- Screen Orientation refers to
EventTarget
- Screen Wake Lock API refers to
EventTarget
- Service Workers Nightly refers to
EventTarget
- Touch Events - Level 2 refers to
EventTarget
- UI Events refers to
EventTarget
- VirtualKeyboard API refers to
EventTarget
- Web Animations refers to
EventTarget
- Web Audio API 1.1 refers to
EventTarget
- WebCodecs refers to
EventTarget
- WebGPU refers to
EventTarget
- Web MIDI API refers to
EventTarget
- WebRTC Encoded Transform refers to
EventTarget
- WebRTC: Real-Time Communication in Browsers refers to
EventTarget
- WebXR Lighting Estimation API Level 1 refers to
EventTarget
- WebXR Device API refers to
EventTarget
- Window Management refers to
EventTarget
- XMLHttpRequest Standard refers to
EventTarget