Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/01/2006, 01:58
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 Ramos Mejia

Esto te servirá:
Código PHP:
<html>
<
head>
<
script>
function 
validar(e) {
    
tecla = (document.all) ? e.keyCode e.which;
    
alert('Has pulsado: '+String.fromCharCode(tecla));

</script>
</head>

<body>
<input type="text" onkeypress="validar(event)">
</body>
</html> 
Saludos,