.. _UIEvent.initEvent: ================================================ UIEvent.initEvent ================================================ void **initEvent** (:ref:`String` **type**, :ref:`Boolean` **captures**, :ref:`Boolean` **bubbles**, :ref:`Boolean` **cancelable**) Parameters ---------- +----------------+--------------------------------------------------+ | **type** | The event type. | +----------------+--------------------------------------------------+ | **captures** | Set to true if this event can be captured. | +----------------+--------------------------------------------------+ | **bubbles** | Set to true if the event bubbles. | +----------------+--------------------------------------------------+ | **cancelable** | Set to true if the default action is cancelable. | +----------------+--------------------------------------------------+ Description ----------- Initializes a UI event as a core W3C event.