title: problem with javascript: return false is not working
body: <p>Hey there is a link in my program as shown and onclick it calls the function clearform as shown:</p>
  
  <p>Html Code:</p>
  
  <pre><code>&lt;a class="button" href="Cancel" style="left: 55%;" onclick="clearForm()"&gt;Cancel&lt;/a&gt;
  </code></pre>
  
  <p>JavaScript Code:</p>
  
  <pre><code>function clearForm(){
          document.getElementById("subjectName").value = "";
          return false;
      }
  </code></pre>
  
  <p>return false is not working in this code. actually the first line of the function executed successfully but the return false was failed. I mean page is redirected to url "Cancel".</p>