Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/05/2003, 01:39
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años, 1 mes
Puntos: 772
Hola, lorenzo.

Puedes utilizar el evento keyDown:
Código PHP:
<html>
<
head>
<
script>
function 
contar(e) {
tecla = (document.all) ? e.keyCode e.which;
if (
tecla==16alert('Mayúsculas pulsadas');

</script>
</head>

<body>
<input type="text" onkeyDown="contar(event)">
</body>
</html> 
el código de la tecla shift es 16, el de ctrl es 17.

Saludos,

Última edición por JavierB; 08/05/2003 a las 01:41