On the Format menu, click Behaviors to open the Behaviors panel.
In Design view, select the page element — for example, text or a graphic — you want to work with.
In the Behaviors panel, click Insert, and then click the action you want.
In the dialog box that appears, select the options you want, and then click OK.
To select the event, under Events, click the default event, and then click the event you want.
Depending on the action you choose, select any additional options that define the event for the action