Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/05/2009, 15:09
Avatar de America|UNK
America|UNK
 
Fecha de Ingreso: noviembre-2006
Ubicación: Piura - Perú
Mensajes: 582
Antigüedad: 18 años, 3 meses
Puntos: 56
Respuesta: Problema con return false

Código javascript:
Ver original
  1. if(txt.length>0)
  2.     {
  3.         txt = "Los siguientes campos son obligatorios:\n\n" + txt;
  4.         alert(txt);
  5.         return false       
  6.     }else{
  7.     return true
  8. }

Código HTML:
<form id="formulario" name="formulario" action="enviar_mail.php" method="post" onSubmit="return validar()"  >
<!-- -->
    <input name="Submit" type="submit" accesskey="e" tabindex="5" value="Enviar"  /> 
__________________
/* El que atiende, entiende..., el que entiende, aprende!.
Desarrollo Web Freelance, Contactar */

Última edición por America|UNK; 21/05/2009 a las 15:19