Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/12/2004, 03:32
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Hola chemon

Prueba este código:

Código HTML:
<html>
<head>
<script>
function tabu(e,obj) {
  tecla=(document.all) ? e.keyCode : e.which;
	if(tecla==13)
	  document.getElementById(obj).focus();
}
</script>
</head>
<body>
<input type="text" id="uno" onkeypress="tabu(event,'dos')" />
<input type="text" id="dos" onkeypress="tabu(event,'uno')" />
</body>
</html> 
Saludos,