WebIDLpedia

CustomEvent interface

Definition

DOM Standard defines CustomEvent



[Exposed=*]
interface CustomEvent : Event {
  constructor(DOMString type, optional CustomEventInit eventInitDict = {});

  readonly attribute any detail;

  undefined initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // legacy
};

Methods and attributes that return objects implementing CustomEvent