Attaching custom scripts to HTML form buttons
This feature does not work with ASP.NET forms.
To run a script on the client:
- Select a Submit button in a form.
For example, you can enter the name of a function that doesnt exist yet, such as
head section of the document yet, add it now.
head section of the document to display a message when the user clicks the Submit button.
alert('Thanks for your order!');