Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/02/2006, 11:19
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 bacoberto

Esto funciona también en FF:
Código:
<html>
<head>
   <script language="javascript">
      function tecla(e){
        tecla = (document.all) ? e.keyCode : e.which; 
         alert("El código es: " + tecla);
      } 
   </script> 
</head>

<body onkeydown="tecla(event)">
   <p>Texto </p>
</body>
</html>
Saludos,