After Submitting HTML form and stop form resubmission when page refresh

by Jayanthi 2014-03-28 14:17:35

After Submitting HTML form and stop form resubmission when page refresh

The hidden frame has included in the page.

<iframe style="display:none;" id="hide-iframe"></iframe>


then add a target attribute to the form

<form id="upload" action="someurl" method="post" target="hide-iframe">
<input type="text" name="username" id="username"/>
<input type="submit" value="submit" />
<form>


when the page refreshing,it is not resubmitted.

Tagged in:

1087
like
0
dislike
0
mail
flag

You must LOGIN to add comments