using onsubmit event and post method in javascript

onsubmit event and post method 


<html>
   <head>
 
      <script type="text/javascript">
         <!--
            function validation()
         {
               all validation goes here
               .........
               return either true or false
            }
         //-->
      </script>
     
   </head>
   <body>
 
      <form method="POST" action="ex1.html" onsubmit="return validate()">
         .......
         <input type="submit" value="Submit" />
      </form>
     
   </body>
</html>

Comments

Popular posts from this blog

java script book in PDF format