Form Submit action : Form Submit « Form Control « JavaScript DHTML






Form Submit action

   
    
<html>
<body>
<script language="JavaScript">
    function function1(){
        document.all.myF.submit();
    }
</script>
<form id="myF" method="post" action="yourfile.asp">
Enter your first name: 
<input type="text">
</form>
<input type="button" value="Send the form" onClick="function1();">
</body>
</html>

    
      
        
    
    
  








Related examples in the same category

1.Return the method used when sending form data
2.Submit a form Via Enter
3.Convert a passed form reference to a string formatted like a JavaScript array of objects
4.Use form select control to trigger the action
5.form on submit event
6.Last-Minute Checking Before Form Submission
7.Use Image to trigger submit and reset actions
8.Submit a form by sending out an email
9.Adjusting a Server Submission Action
10.Demo: Ajax form submit
11.html input mask