package js.html
extended by AudioNode, BaseAudioContext, MediaKeySession, Database, FileHandle, MutableFile, Request, Transaction, MIDIAccess, MIDIPort, DTMFSender, DataChannel, PeerConnection, AbortSignal, Animation, AudioTrackList, BatteryManager, BroadcastChannel, Clipboard, DOMRequest, EventSource, FetchObserver, FileReader, FontFaceSet, ImageCapture, MediaDevices, MediaQueryList, MediaRecorder, MediaSource, MediaStream, MediaStreamTrack, MessagePort, Node, Notification, Performance, PermissionStatus, Screen, ScreenOrientation, ServiceWorker, ServiceWorkerContainer, ServiceWorkerRegistration, SharedWorker, SourceBuffer, SourceBufferList, SpeechRecognition, SpeechSynthesis, SpeechSynthesisUtterance, TextTrack, TextTrackCue, TextTrackList, VideoTrackList, VisualViewport, WebSocket, Window, Worker, WorkerDebuggerGlobalScope, WorkerGlobalScope, XMLHttpRequestEventTarget
Available on js
EventTarget
is an interface implemented by objects that can receive events and may have listeners for them.
Documentation EventTarget by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
new()
Throws:
null |
DOMError |
---|
addEventListener(type:String, listener:Function, ?options:EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted:Bool):Void
addEventListener(type:String, listener:EventListener, ?options:EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted:Bool):Void
Register an event handler of a specific event type on the EventTarget
.
Throws:
null |
DOMError |
---|
dispatchEvent(event:Event):Bool
Dispatch an event to this EventTarget
.
Throws:
null |
DOMError |
---|
removeEventListener(type:String, listener:Function, ?options:EitherType<EventListenerOptions, Bool>):Void
removeEventListener(type:String, listener:EventListener, ?options:EitherType<EventListenerOptions, Bool>):Void
Removes an event listener from the EventTarget
.
Throws:
null |
DOMError |
---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/EventTarget.html