![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/06/2008, 00:25
|
![Avatar de JavierB](http://static.forosdelweb.com/customavatars/avatar16568_12.gif) | Colaborador | | Fecha de Ingreso: febrero-2002 Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años Puntos: 772 | |
Respuesta: Ayuda urgente con una caja de texto Hola fr61293
Prueba este ejemplo:
Código:
<script type="text/javascript">
function validar(frm) {
if (frm.campo.value.length < 6) {
alert('6 caracteres mínimo')
return false;
}
}
</script>
</head>
<body>
<form name="formu" onsubmit = "return validar(this)">
<input type="text" name="campo" />
Saludos, |