Tryit Editor v3.7

PHOTO EMBED

Sun Jan 30 2022 13:04:12 GMT+0000 (UTC)

Saved by @___maia___ #undefined

<!DOCTYPE html>
<html>
<body>
​
<p>Enter names in the fields, then click "Submit" to submit the form:</p>
​
<form id="frm1" action="/action_page.php">
  First name: <input type="text" name="fname"><br>
  Last name: <input type="text" name="lname"><br><br>
  <input type="button" onclick="myFunction()" value="Submit">
</form>
​
<script>
function myFunction() {
  document.getElementById("frm1").submit();
}
</script>
​
</body>
</html>
​
content_copyCOPY

https://www.w3schools.com/js/tryit.asp?filename