Chapter 10. Attach Behaviors to Web Page Elements

Add a Behavior

You can add basic interactivity to your Web pages by inserting JavaScript code. JavaScript was originally developed by the Netscape Corporation, but is now an open scripting language that can be freely used by anyone and is supported in every major browser.

While you can write JavaScript yourself, Dreamweaver provides two methods by which you can implement JavaScript in your pages without writing code. The first is through behaviors, which exist as prebuilt blocks of JavaScript with specific functionality. The second, Spry, is discussed in the next chapter.

Behaviors free you from needing to learn how JavaScript works or from writing and debugging your own code. Dreamweaver includes ...

Get Master Visually®: Dreamweaver® CS4 and Flash® CS4 Professional now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.