Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/11/2004, 11:31
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola jostrix.

Supongo que te refieres a pulsar la tecla enter. Aquí tienes un ejemplo:
Código HTML:
<html>
<head>
<script>
function pulsar(e) {
	tecla=(document.all) ? e.keyCode : e.which;
  if(tecla==13) alert('Enter pulsado');
}
</script>
</head>
<body>
<input type="text" onkeypress="pulsar(event)" />
</body>
</html> 
Saludos,