title: How to use window.location.href after a post submission?
body: <p>I have tried window.location.href without doing any submission it works </p>
  
  <pre><code>  window.location.href="http://www.google.com";  
  </code></pre>
  
  <p>But how about if I have to do a post submission, then if the data is valid, I would like to perform a redirect using   <code>window.location.href</code> Can somebody explain to me how this can be done? Thanks! </p>