Some forms use JavaScript or VBScript to perform form processing or some other action on the client as opposed to sending the form data to the server for processing. You can use Dreamweaver to configure a form button to run a specific client-side script when the user clicks the button.
NOTE |
|
This feature does not work with ASP.NET forms. |
For more information on this behavior, see Call JavaScript.
For example, you can enter the name of a function that doesnt exist yet, such as processMyForm()
.
head
section of the document yet, add it now.
For example, you could define the following JavaScript function in the head
section of the document to display a message when the user clicks the Submit button.
function processMyForm(){ alert('Thanks for your order!'); }