In my form, if I click the submit button it should submit. Even if I am in the text field and press the enter key the form should submit. Can anyone tell me why this is happening?
<html>
< body>
<form name="input" action="html_form_action.asp" method="get">
First name: <input type="text" name="FirstName" /><br />
Last name: <input type="text" name="LastName" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html>
This is normal behaviour. Browsers let forms be submitted by users pressing enter in a text field; it makes many forms more convenient.