onSubmit event performs a command or a set of commands when a user clicks the submit button on a form.
To use OnSubmit event
1.Create a function to run the specific commands when your form's submit button is clicked. Place the function in your HTML page header section.
function MyFormComm () {
alert('Your Text');
}
This function will make the alert box display when the submit button on your form in clicked (when your submit button code is correct).
2.Now call the function from your HTML page’s tag
< FORM onSubmit="MyFormComm ()" >
< input type=submit >
< /FORM >
Using OnSubmit in JavaScript
onSubmit event performs a command or a set of commands when a user clicks the submit button on a form....
javascript onsubmit event
Also tagged with one or more of these keywords: javascript, onsubmit event
Web Design →
Javascript →
Comparing Strings in JavaScriptStarted by Salwa, 18 Jul 2013 comparing strings, javascript |
|
|
||
Web Design →
Javascript →
Downloading Javascript to iPodStarted by OneDes, 13 Jun 2013 downloading, javascript, to ipod |
|
|
||
Web Design →
Javascript →
Downloading JavaScript to BlackBerryStarted by OneDes, 13 Jun 2013 downloading, javascript and 1 more... |
|
|
||
Web Design →
Javascript →
Enabling JavaScript on a MacStarted by OneDes, 13 Jun 2013 enable, javascript, mac |
|
|
||
General chat →
Introduce Yourself →
Hello!Started by sephyleader, 03 Jun 2013 javascript, onsubmit event |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users