![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/03/2003, 15:25
|
| | Fecha de Ingreso: marzo-2003
Mensajes: 2
Antigüedad: 21 años, 11 meses Puntos: 0 | |
spero que te sirva esta ejemplo. <html>
<head>
<script languaje=javascript>
function validar()
{
if (document.miformulario.areatexto.value.length==0 ) {
alert("textarea vacio");
return false;
}
else return true;
}
</script>
</head>
<body>
<form action="accion" METHOD="get" name="miformulario" onSubmit="return validar()">
<input type=textarea name=areatexto>
<input type=submit value=enviar>
</fotm>
</body>
</html> |