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

Set the variables to different values and different operators and then try...

auto redirected page in java script