Jan 18, 2001 #1 iooo Programmer Dec 27, 2000 31 CA Hi, I wanted to know how to make a button active on clicking "Enter Key" rather than using the mouse thanks
Hi, I wanted to know how to make a button active on clicking "Enter Key" rather than using the mouse thanks
Jan 18, 2001 Thread starter #2 iooo Programmer Dec 27, 2000 31 CA Hi, i wanted to know how to activate a client script on key board click of enter key rather than using the mouse . my code is <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript> <!-- function submit1_onclick() { alert("wait:" FORM1.d } //--> </SCRIPT> </HEAD> <BODY> <P>&nbsp;</P> <P> <FORM action="hello.asp" id=FORM1 method=post name=FORM1> <P>&nbsp;</P> <P> <INPUT id=text1 name=text1 style="LEFT: 10px; TOP: 19px" CHECKED> <INPUT type="submit" value="Submit" id=submit1 name=submit1 LANGUAGE=javascript onclick="return submit1_onclick()"> </P> </FORM> <P></P> </BODY> </HTML> but this code workks by clicking the submit button using mouse and when enter key is used it goes to another page some one please answer the question Upvote 0 Downvote
Hi, i wanted to know how to activate a client script on key board click of enter key rather than using the mouse . my code is <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript> <!-- function submit1_onclick() { alert("wait:" FORM1.d } //--> </SCRIPT> </HEAD> <BODY> <P>&nbsp;</P> <P> <FORM action="hello.asp" id=FORM1 method=post name=FORM1> <P>&nbsp;</P> <P> <INPUT id=text1 name=text1 style="LEFT: 10px; TOP: 19px" CHECKED> <INPUT type="submit" value="Submit" id=submit1 name=submit1 LANGUAGE=javascript onclick="return submit1_onclick()"> </P> </FORM> <P></P> </BODY> </HTML> but this code workks by clicking the submit button using mouse and when enter key is used it goes to another page some one please answer the question