Javascript Posting a Form with HTML Button

This example will post an HTML form with javascript and without the use of the submit button. This code goes in the section of the web page.

<script language="javascript">      function SendForm()           {           document.AddCode.submit();           } </script>

This code is in the HTML part of your page.

<input type="button" value="Send Form" onclick="Javascript: SendForm();" />

Another way you can do this is like this.

<input type="button" value="Send Form" onclick="document.AddCode.submit();" />



Post a comment for www.mgwalk.com
 
Send your comment to www.mgwalk.com
 
Name:
Email:
Web Site:
Rating:
star blank star blank star blank star blank star blank (move mouse over star to select rating)
Comment:
Anti-spam word: (Required) *