O'Reilly logo

Master Visually®: Dreamweaver® CS4 and Flash® CS4 Professional by Rob Huddleston

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

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

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