haXe API Documentation
Back | Index
extern class js.html.EventTarget
Available in 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.
function addEventListener(type : String, listener : EventListener, ?useCapture : Bool) : Void
function dispatchEvent(event : Event) : Bool
function removeEventListener(type : String, listener : EventListener, ?useCapture : Bool) : Void
Back | Index