title: Will the following code reset and refresh a form after a submit?
body: <p>Should the following code work to reset AND refresh a form after it has been submitted? I have a reset button on the form also that works fine if incorrect information is entered, however I would also like to reset and clear the form as well after the form has been submitted. I am still seeing the information on the form after the submit using this code.  </p>
  
  <pre><code>onsubmit="setTimeout(function () { window.location.reload(); }, 10)"
  </code></pre>
  
  <p>Here is my current HTML:</p>
  
  <pre><code>&lt;form action="celebrantdata.php" method="post" id="weddata"&gt;
      &lt;div class="c1"&gt;
          &lt;input name="Submit" type="submit" class="style2"    value="Submit" onsubmit="setTimeout(function () { window.location.reload(); }, 10)" /&gt;
          &lt;input name="Reset" type="reset" class="style2" value="Reset" onclick="clearform();"/&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>