Dreamweaver behaviors are made up of events and actions.

The event tells the action when to run.

Typical events include:

  • onLoad (when page loads in browser)
  • onClick (when user clicks on something)
  • onMouseOver (when user movies mouse pointer over something)
  • onMouseOut (when user moves mouse pointer off something)

The above are a few of the most commonly used events; others are available and sometimes useful.

When you add a behavior, Dreamweaver selects an event by default. You may need to change this; the default is not always the event you want.

Not all browsers support all events.

Most events are the result of user action. But not all: for example, a timer can send an event after a certain number of milliseconds have elapsed.