Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/04/2010, 07:10
Bigcrime
 
Fecha de Ingreso: agosto-2008
Mensajes: 271
Antigüedad: 15 años, 9 meses
Puntos: 2
Respuesta: Envio de formulario

no entendi muy bien, como seria para este code:
Código Javascript:
Ver original
  1. <html>
  2.  
  3. <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  5.     <meta name="author" content="www.intercambiosvirtuales.org" />
  6.  
  7.     <title>Untitled 2</title>
  8. </head>
  9.  
  10. <body>
  11.  
  12. <script>
  13.  
  14. function hola1 (word1)
  15. {
  16.     if(word1.length<4)
  17.     {
  18.         alert("4 es muy chin");
  19.         return false;
  20.     }
  21.     return true;
  22. }
  23.  
  24. function hola2 (word2)
  25. {
  26.     if(word2.length<6)
  27.     {
  28.         alert("6 es muy chin");
  29.         return false;
  30.     }
  31.     return true;
  32. }
  33. </script>
  34.  
  35.  
  36. <form action="archivito.php" onsubmit="" method="post" name="tutanquieto">
  37. <input type="text" name="texto1" onblur="return hola1(value);" />
  38. <input type="text" name="texto2" onblur="return hola2(value);" />
  39. <input  type="submit" name="cocoliso" value="salchichon"/>
  40. </form>
  41.  
  42. </body>
  43. </html>

Última edición por Bigcrime; 25/04/2010 a las 07:33 Razón: highlight