Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/01/2006, 10:35
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 10 meses
Puntos: 17
Tendrías que poner el código ocmpleto... te muestro como lo hice andar yo
Código HTML:
<script>
function validar() {
	if (document.form1.txt_proyecto.value.length != 3){
		alert("Debe ingresar un nombre de proyecto");
		return false;
	} else {
		return true;
	}
}
</script>
<form action="a.htm" onsubmit="if (!validar()) { return false; }" name="form1">
<input type="text" name="txt_proyecto">
<input type="submit">
</form>