Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/05/2005, 07:36
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 Phoncadiz

Creo que esto te servirá:
Código PHP:
<html>
<
head>
<
script>
function 
pulsar(e,txt) {
  
tecla = (document.all) ? e.keyCode :e.which;
  if (
tecla==8) return true;
  if (
txt.length>15) {
    
alert('Algo');
    return 
false;
  }
}
</script>
</head>
<body>
<input type="text" onkeypress="return pulsar(event,this.value)" />
</body>
</html> 
Saludos,