How to self submit a form through Javascript?

Posted by 10 August, 2010

Here is a self submitting form I wrote for a php form. Its simple, clean, and it works flawlessly.

<form id="myform" action="Recap" method="post">
<input name="invoicevalue" type="hidden" value="${preRecapBean.invoiceAmount}" />
</form>
 
<script type="text/JavaScript" language="JavaScript">  
        document.myform.submit();  
 </script>
Share
Categories : JavaScript Tags :

Comments

No comments yet.


Leave a comment

(required)

(required)


*