here is code that works! must be in body tag.
<body> onkeydown="if (event.keyCode= =13) {event.keyCode= 9; return event.keyCode }"
User Profile
Collapse
-
-
javascript/ change enter key to tab keypress
this work great and stops all enter key presses. now how do i disable the event and fire a tab key event.
so if a user presses the enter key i need it to be ignore and tab to the next field.
<head>
<script type="text/javascript">
function kH(e) {
<!--
var pK = document.all? window.event.ke yCode:e.which;
return pK != 13;
}
...
No activity results to display
Show More
Leave a comment: