Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

onsubmit in html

<form onsubmit="myFunction()">
  Enter name: <input type="text">
  <input type="submit">
</form>

<script>
function myFunction() {
  alert("The form was submitted");
}
</script>
 
PREVIOUS NEXT
Tagged: #onsubmit #html
ADD COMMENT
Topic
Name
6+4 =