![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/01/2005, 05:29
|
![Avatar de JavierB](http://static.forosdelweb.com/customavatars/avatar16568_12.gif) | Colaborador | | Fecha de Ingreso: febrero-2002 Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años Puntos: 772 | |
Hola criosg
Prueba con este código:
Código:
<form>
<input type="text" name="t1" onkeypress="pulsar(event,this,'t2')" />
<input type="text" name="t2" onkeypress="pulsar(event,this,'t1')" />
</form>
Código:
function pulsar(e,obj,txt) {
tecla=(document.all) ? e.keyCode : e.which;
if(tecla==13)
eval('obj.form.'+txt).focus();
}
Saludos, |