What Is a Dreamweaver Behavior?

Dreamweaver adds behaviors to a Web page to capture input from the user or the Web page. After the input is captured, it causes something to happen. A behavior is an action triggered by an event, or you could look at it this way:

event + action = behavior

  • Events are triggers captured by the browser. Table 16.1 lists examples of common browser events. Different browsers may capture different events. Also, different objects capture different events.

  • Actions are JavaScript code. The JavaScript is inserted into your Web page by Dreamweaver.

Table 16.1. Common Browser Events with Descriptions
EventDescription
onMouseOverTriggered when the viewer places the cursor over an object
onMouseDownTriggered when the viewer presses ...

Get Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.