title: How to disable click with jQuery/JavaScript?
body: <p>I have a link that I would like to present with a confirmation. I am using the javascript <code>confirm()</code> method. But the only way for me to get the link to not work when the user clicks 'cancel' is to use <code>return false;</code>. Is that the correct way to do it (cross-browser)?</p>
  
  <pre><code>$('a.confirm').click(function() {
      if(confirm('Are you sure? This cannot be undone.')) {
          return true;
      }
      return false;
  });
  </code></pre>