EventTarget

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
voidaddEventListener(DOMInternedString type, EventListener listener, optional boolean useCapture)
voidremoveEventListener(DOMInternedString type, EventListener listener, optional boolean useCapture)
booleandispatchEvent(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