1. Computing & Technology

Discuss in my forum

What is a Dreamweaver Behavior?

By , About.com Guide

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.

©2012 About.com. All rights reserved.

A part of The New York Times Company.