Here is the sample code which can be used to submit form automatically…
<html>
<head></head>
<body>
<form name=”myForm” id=”myForm” method=”post” action=”http://www.google.com”/>
<script type=”text/javascript”>
//<![CDATA[
this.myForm.submit();
//]]>
</script>
</body>
</html>
Common Mistakes:
- Make Sure no form element with “submit” name.
- submit function is case sensitive.
- Make sure body and form tags are properly closed.
Hope this Helps!!!
Advertisement
Tags: Firefox Form Submit