Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/10/2011, 21:03
Avatar de Franz1628
Franz1628
 
Fecha de Ingreso: marzo-2007
Ubicación: Lima - Perú
Mensajes: 145
Antigüedad: 17 años, 2 meses
Puntos: 26
Respuesta: problema firefox con event

Mira quizas esto te pueda funcionar
http://fgualambo.blogspot.com/2011/09/validar-campo-de-texto-que-solo-permita.html


Código HTML:
Ver original
  1. <script type="text/javascript">
  2.     function prueba(e){
  3.         tecla = e.keyCode || e.which;
  4.         if((tecla>64 && tecla<91)||tecla==192){
  5.            alert("Has pulsado una letra ");
  6.         }
  7.     }
  8.  
  9. <input onkeydown="prueba(event)" type="text">
__________________
En mi Blog puedes ver articulos javascript y más...
@Franz1628