Skip to main content

Event Handling

Attaching event listeners#

You can attach event listeners with the method:"Click", function(e){    console.log("The popup was clicked");});

The names of events are case-insensitive.

Related sample: Popup. Events

Detaching event listeners#

To detach events, use"Click", function(e){    console.log("The popup was clicked");});"Click");

Calling events#

To call events, use"name",args);// where args is an array of arguments

The list of events#

The full list of events is available in the related API section.