You can attach behaviors to the entire document (that is, to the body
tag) or to links, images, form elements, or any of several other HTML elements.
The target browser you select determines which events are supported for a given element. Internet Explorer 4.0, for example, has a much wider array of events for each element than Netscape Navigator 4.0 or any 3.0 browser.
NOTE |
|
You cant attach a behavior to plain text. For more information, see Attaching a behavior to text. |
You can specify more than one action for each event. Actions occur in the order in which theyre listed in the Actions column of the Behaviors panel. For information on changing the order of actions, see Changing a behavior.
To attach a behavior to the entire page, click the <body>
tag in the tag selector at the bottom left of the Document window.
Actions that are dimmed in the menu cant be chosen. They may be dimmed because a required object doesnt exist in the current document. For example, the Control Shockwave or Flash action is dimmed if the document contains no Shockwave or Macromedia Flash SWF files. If no events are available for the selected object, all actions are dimmed.
When you select an action, a dialog box appears, displaying parameters and instructions for the action.
All actions provided in Dreamweaver work in 4.0 and later browsers. Some actions do not work in older browsers. See Using the behavior actions that come with Dreamweaver.