
Can any one tell me how to handle the enter key event on a Button in HTML. Like in my simple HTML page i want to submit the form even if user hits the enter key from keyboard instead of button.

Enter key event in html JavaScript
This is very simple. You just need to place your code within the
tag. As given below...<form action="iPage.php" method="post"> <input type="text" name="iText"> <input type="submit"> </form>
It will effect the form even if the enter key get hit from keyboard.