Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

JavaScript code to be run prior to the submission of the form.
Default value
Blank. No JavaScript is run.
Valid values
Any valid JavaScript function, or JavaScript code followed by a semicolon ((wink)";".
If you want to execute the presubmit JavaScript only, without running the JavaScript that submits the request (thus canceling the onclick event), append return false; to your presubmit JavaScript.
Example
The following example shows a message box:Image Removed

Image Added
The following example shows a message box and cancels the submit JavaScript:Image Removed

Image Added