Dreamweaver

Attach JavaScript behaviors to HTML form objects

You can attach JavaScript behaviors stored in Dreamweaver to HTML form objects such as buttons.

Note: This feature does not work with ASP.NET form controls because these controls are processed on the server.
  1. Select the HTML form object.
  2. In the Behaviors panel (Window > Behaviors), click the Plus (+) button, and select a behavior from the list.