I want to hit enter key to go to p2.htm or p3.htm according to the input text that I was typing in. And I also want to hit submit1 button to alert(\'no1\') manually.
This will stop the form proceeding to the next page after either by clicking a submit button or pressing enter.