1. Home
  2. Computing & Technology
  3. Web Design / HTML

What is a Dreamweaver Behavior?

By Jennifer Kyrnin, About.com

Dreamweaver CS3

Dreamweaver CS3

Image courtesy Adobe

Question: What is a Dreamweaver Behavior?

Answer:

Dreamweaver behaviors are a way to add scripting events to the elements on your Web page. Dreamweaver writes the JavaScript and the event attribute for you. You can create behaviors to:

  • check for a specific browswer version
  • open a new browser window
  • play a sound
  • write a popup message
  • change text elements
  • call a custom JavaScript script
  • and so much more

When you insert a behavior on an element on your Web page, Dreamweaver will place a script in the <head> and place the appropriate browser event attribute in your HTML tag.

Dreamweaver comes with 27 built-in behaviors and you can install more through Dreamweaver extensions.

More Web Design / HTML Q&A

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML Editors and Software
  5. HTML Editors
  6. Dreamweaver
  7. Dreamweaver Tips
  8. What is a Dreamweaver behavior - Dreamweaver behaviors FAQ

©2008 About.com, a part of The New York Times Company.

All rights reserved.