Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/09/2004, 01:13
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 yacatl.

Prueba este ejemplo:
Código HTML:
<html>

<head>
<script>
function pulsar(e,frm) {
	tecla=(document.all) ? e.keyCode : e.which;
	if(tecla==13) frm.submit();
}
</script>
</head>

<body>
<form action="loquesea.asp">
<input type="text" onkeypress="pulsar(event,this.form)" />
</form>
</body>

</html> 
Saludos,

Última edición por JavierB; 08/09/2004 a las 12:25