Working with actions and events
An action is a script that is executed as the result of some event, such as the user’s clicking an image or the document’s being opened by a browser. Actions are “attached” to events that occur with respect to certain kinds of page elements. For example, an action that reveals a hidden paragraph might be attached to a “mouse over” event on an image: when a user moves the pointer over the image, the action is executed and the hidden paragraph is revealed.
You can attach more than one action to the same event on a given element. For example, clicking an image can reveal a hidden paragraph and set a timeline in motion, at the same time. Similarly, you can attach actions to multiple events on an element. For example, the popular “rollover” effect involves having one action occur when the mouse pointer enters the boundaries of an element, and another, opposing action occur when the pointer exits those boundaries.
Namo WebEditor includes over 80 built-in actions and supports 17 event types.
The Actions panel is where you attach actions to events on page elements (or the whole document). If any actions are already associated with the current element, they are listed in the window. To show the Actions panel: on the View menu, click the Actions button in the Panel section (or press Alt+7).
In this section
Attaching actions to events on elements
Attaching actions to events on a document