MtProgrammer
Programmer
I've found how to disable the enter key on a web page, but was wondering if it is possible to alter the input to act as though the TAB key was pressed? I'm using ASP.Net.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script>
function checkKey(event,nextField){
var pK = document.all? event.keyCode:event.which;
if(pK==13 && nextField) document.f.elements[nextField].focus();
return pK!=13;
}
</script>
<form name="f">
<input type="text" name="t1" onkeypress="return checkKey(event,'t2')">
<input type="text" name="t2" onkeypress="return checkKey(event,'t3')">
<input type="text" name="t3" onkeypress="return checkKey(event,null)">
</form>