EventTarget
On this page
Module: JavaScript DOM API
Common interface for all elements that can be event targets.
#include <EventTarget.idl>
Inherited by Node, Performance, Window, XMLHttpRequestEventTarget
Public Functions
Name | |
---|---|
void | addEventListener(DOMInternedString type, EventListener listener, optional boolean useCapture) |
void | removeEventListener(DOMInternedString type, EventListener listener, optional boolean useCapture) |
boolean | dispatchEvent(Event event) |
Public Functions Documentation
function addEventListener
void addEventListener(
DOMInternedString type,
EventListener listener,
optional boolean useCapture
)
Reimplemented by: Window::addEventListener
function removeEventListener
void removeEventListener(
DOMInternedString type,
EventListener listener,
optional boolean useCapture
)
Reimplemented by: Window::removeEventListener
function dispatchEvent
boolean dispatchEvent(
Event event
)
Reimplemented by: Window::dispatchEvent