Answers for "what happens when i do onSubmit in HTML form"

3

onsubmit in html

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

<script>
function myFunction() {
  alert("The form was submitted");
}
</script>
Posted by: Guest on May-21-2021

Code answers related to "what happens when i do onSubmit in HTML form"

Browse Popular Code Answers by Language