class js.html.EventTarget

Available on js

An EventTarget is a DOM interface implemented by objects that can receive DOM events and have listeners for them. The most common EventTargets are DOM elements, although other objects can be EventTargets too, for example document, window, XMLHttpRequest, and others.

Documentation for this class was provided by MDN.

Instance Fields

function addEventListener(type:String, listener:EventListener, ?useCapture:Bool):Void

function dispatchEvent(event:Event):Bool

function removeEventListener(type:String, listener:EventListener, ?useCapture:Bool):Void