Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/07/2002, 16:09
unKnown
Usuario no validado
 
Fecha de Ingreso: julio-2001
Mensajes: 766
Antigüedad: 23 años, 7 meses
Puntos: 0
Re: Ayuda con código...

intenta asi


<script>
function processForm (f){
function isblank(s)
{

if ( ( s == null ) || ( s == "" ) ) return true;
for(var i = 0; i < s.length; i++) {
var c = s.charAt(i);
if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
}
return true;
}

if (isblank (f.nombre.value)){
alert ("Por favor ingrese su nombre completo");
f.nombre.focus();
return false;
}
}

</script>

<form action="enviarmail.asp" onsubmit="return processForm(this);" >
<input name="nombre" type="text" value="">
<input type="submit">
</form>