Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/11/2004, 04:01
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola baklao.

Te dejo un ejemplo:
Código HTML:
<html>
<head>
<script type="text/javascript">
function pulsar(e,obj) {
	tecla=(document.all) ? e.keyCode : e.which;
  if(tecla==13)
  	document.getElementById(obj).focus();
}
</script>
</head>
<body>
<input type="text" id="apellidos" onkeypress="pulsar(event,'nombre')" />
<input type="text" id="nombre" onkeypress="pulsar(event,'apellidos')" />
</html> 
Saludos,