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
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