Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/03/2004, 10:08
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, Gain y TMeister.

Veamos si es cierto lo de los resultados:
Código PHP:
<html>
<
head>
<
script>
function 
validar(e) {
    
tecla=(document.all) ? e.keyCode e.which;
    if((
tecla<48 || tecla>57) && tecla!=8)
        return 
false;
}
</script>
</head>

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