Hola
Prueba así
Código Javascript
:
Ver original<html>
<head>
<script type="text/javascript">
function tab(ev,obj) {
var keyCode = document.layers ? ev.which : document.all ? event.keyCode : document.getElementById ? ev.keyCode : 0;
if (keyCode !=13) return;
frm = obj.form;
for(i = 0; i < frm.elements.length; i++)
if (frm.elements[i] == obj) {
if (i == frm.elements.length-1) i =-1;
break
}
frm.elements[i+1].focus();
return false;
}
</script>
</head>
<body>
<form>
<input type="text" onkeypress="return tab(event,this)" /><br />
<input type="text" onkeypress="return tab(event,this)" />
</form>
</body>
</html>
Suerte