How to Insert an Event Listener

Previous Next

See Also

To insert an event listener:

1. From the catalog, open the appropriate page.
2. In the object tree, select the object you want to add an event listener to, for example a button.
3. Choose Insert, EventListener from the menu.

You can also drag an Event object from the Controls tab of the catalog, for example the onclick Event Listener.

4. For the new EventListener1 object, set the Event Type to the (HTML) event on which you want to perform the action, for example: onclick.

You can type any W3C standard HTML event type in this field.

Now you can add actions to this event listener.