title: Why does 'return false' not prevent page reload on onclick
body: <p>I already tried this code but it does not prevent page reload on <code>onclick</code> function.  What should I do?  Did I miss something or is this a browser compatibility issue?</p>
  
  <pre><code>function track_specs() {
    $('button[name="delete_spec"]').each(function() { 
      this.onclick = null; 
      $(this).click(function () { 
        delete_specs($(this).data("id")); 
        return false; 
      }); 
    });
  }
  </code></pre>