Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/03/2003, 02:04
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, warner.

Prueba esto:
Código PHP:

<html>

<
head>
<
script>
function 
noEspacio(e) {
if (
navigator.appName == "Netscape"tecla e.which;
else 
tecla e.keyCode;
if (
tecla == 32) return false;
else return 
true;
}
</script>
</head>

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

</html> 
Saludos,