Dreamweaver
Making pages dynamic
/
Creating forms
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.
Select the HTML form object.
In the Behaviors panel (Window > Behaviors), click the Plus (+) button, and select a behavior from the list.
This page on the Web