Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/03/2003, 03:51
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, joja_2.

Prueba esto:
Código PHP:
<html>

<
head>
<
script>
    function 
numeros(e) {
        
tecla = (document.all) ? e.keyCode e.which;
        if ((
tecla<48 || tecla>57) && tecla!=46) return false
    
}
</script>
</head>

<body>
<input type="text" onKeyPress="return numeros(event)">
</body>

</html> 
Saludos,