O'Reilly logo

Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours by Betsy Bruce

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required