Firefox & Auto Form Submit

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:

  1. Make Sure no form element with “submit” name.
  2. submit function is case sensitive.
  3. Make sure body and form tags are properly closed.

Hope this Helps!!! 

Advertisement

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.