WebIDLpedia

EventTarget interface

Definition

DOM Standard defines EventTarget



[Exposed=*]
interface EventTarget {
  constructor();

  undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
  undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
  boolean dispatchEvent(Event event);
};

Methods and attributes that return objects implementing EventTarget

Referring IDL interfaces/dictionaries

Referring specifications