title: Cancel button not working for the confirm window
body: <p>I'm trying to validate radio buttons in JavaScript and this is my code:</p>
  
  <pre><code>if (document.ExamEntry.GCSE.checked == true) {
      confirm("You have selected GCSE. Is this correct?");
  }
  if (document.ExamEntry.AS.checked == true) {
      confirm("You have selected AS. Is this correct?");
  }
  if (document.ExamEntry.A2.checked == true) {
      confirm("You have selected A2. Is this correct?");
  }
  </code></pre>
  
  <p>The confirm window shows up and clicking 'Submit' successfully takes you to the next page, however the cancel button doesn't seem to work - it just takes you to the next page when I want it to stay on the page so you can change your option.</p>
  
  <p>I've tried things such as  return result;
                             result = false</p>
  
  <p>They either don't work, or if they do, then it's vice versa so that the cancel button works by staying on the same page, but this will happen with the submit button too.</p>