Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/05/2006, 08:03
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años, 1 mes
Puntos: 772
Hola tattojk

Prueba este código:
Código:
<html>
<head>
<script type="text/javascript">
function pulsar(e,txt) {
  if (txt=='') return;
  tecla = (document.all) ? e.keyCode : e.which;
  if (tecla==13)
    document.forms[0].otro.focus();
}
</script>
</head>
<body>
<form>
<input type="text" onkeypress="pulsar(event,this.value)" />
<input type="text" name="otro" />
</form> 
</body>
</html>
Saludos,