asi te sirve ?:
Código PHP:
<script language="javascript">
function KeyAscii(e) {
return (document.all) ? e.keyCode : e.which;
}
function TabKey(e, nextobject) {
nextobject = document.getElementById(nextobject);
if (nextobject) {
if (KeyAscii(e) == 13) nextobject.focus();
}
}
</script>
Código HTML:
nombre <input type="text" name="nombre" id="nombre" onKeyPress="TabKey(event, 'apellido')"><br />
apellido <input type="text" name="apellido" id="apellido" onKeyPress="TabKey(event, 'telefono')"><br />
telefono<input type="text" name="telefono" id="telefono">
saludos