aspx_beginners thread: Enter key same effect as the Tab
How I can do that the Enter key have the same effect as the Tab key in a webform?
You can use a client-side javascript to accomplish this:
function disableEnterKey(){
if(event.keyCode == 13)
event.keyCode=9 //return the tab key
event.cancelBubble = true
}
then in your html, use the onkeydown="disableEnterKey" as follows:
<input id="whatever" type="text" onkeydown="disableEnterKey()">
Jim
> How I can do that the Enter key have the same effect as the Tab
key in a webform?
|





