How to submit an HTML form on loading the page?

How to submit an HTML form on loading the page?

In this post we will show you submit an HTML form on loading the page, hear for submit an HTML form on loading the page we will give you demo and example for implement.

Example for submit HTML form on loading using jquery

.

this is Example for submit HTML form on loading using jquery and how to lode page on submit.

<form name="form_submit" id="form_submit" action="submit.php" method="post">
Please Waite submit HTML form on loading...
<input type="text" name="uname" id="uname" value="" />
<input type="text" name="price" id="price" value="" />
<input type="submit" name="submit" id="submit" value="submit">
</form>
$(document).ready(function(){
$("#form_submit").submit();
});

Onload event Example for submit HTML form on loading

this is Example for submit HTML form on loading using Onload event and how to lode page on submit.

<form name="form_submit" id="form_submit" action="submit.php" method="post">
Please Waite submit HTML form on loading...
<input type="text" name="uname" id="uname" value="" />
<input type="text" name="price" id="price" value="" />
<input type="submit" name="submit" id="submit" value="submit">
</form>
<script type="text/javascript">
$(document).ready(function(){
$('#form_submit').submit();
});
</script>

Onclick event Example for submit HTML form on loading

this is Example for submit an HTML form on loading using Onclick event and how to lode page on submit.

<form name="form_submit" id="form_submit" action="submit.php" method="post">
Please Waite submit HTML form on loading...
<input type="text" name="uname" id="uname" value="" />
<input type="text" name="price" id="price" value="" />
<input type="submit" name="submit" id="submit" value="submit">
</form>
<script type="text/javascript">
$('#submit').click(function(){
$('#form_submit').submit();
});
</script>

Example for submit an HTML form on loading using function

this is Example for submit HTML form on loading using function and how to lode page on submit.

[/php]


[/php]

Hope this code and post will helped you for implement submit an HTML form on loading the page. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org

Leave a Comment

Your email address will not be published. Required fields are marked *

8  +  1  =  

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US