Horje

Example of HTML onsubmit Event Attribute

It will Execute a JavaScript when a form is submitted.
index.html
Example: HTML
 <form onsubmit="myFunction()">
  Enter name: <input type="text">
  <input type="submit">
</form> 

Output should be:

Example of HTML onsubmit Event Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Form Events Attribute
Uploaded by:
Admin