Javascript DOM Form Prevent Submit On Enter Key

Description

Javascript DOM Form Prevent Submit On Enter Key

View in separate window


<html>
<head>
  <title>OnSubmit Events</title>
</head>//  w w  w . ja  v  a  2  s  . c  om
<body>
<form action="signup.php" onsubmit="return false;">
Text: <input type=text>
<input type=button onclick="this.form.submit()" value="Submit">
</form>
</body>
</html>



PreviousNext

Related