title: Page redirect on clicking of "Cancel" button of a confirm dialogue
body: <p>Please look at the code snippet - </p>
  
  <pre><code>&lt;form action="post" onsubmit="return confirm('Are You Sure?')"&gt;
         &lt;a id="saveBtn" class="btnClass"&gt;Save&lt;a/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When I click on the 'Save' and then Click on the "<strong>Ok</strong>" button of confirm popup the form get submitted. If I click "<strong>Cancel</strong>" the form is not submitted and the I left on the current page. Is it possible if I click "<strong>Cancel</strong>" button then the page redirected to other page?</p>