title: Preventing clicking of links using Javascript
body: <pre><code>$('a').click(function(e){return false;});
  </code></pre>
  
  <p>It successfully disables links almost everywhere but does not work on the links found in the tooltip-popups on the topic tags on this site (SO). I looked at the DOM and they are indeed <code>&lt;a&gt;</code> tags. </p>
  
  <p>How come? </p>
  
  <p>Is there a more robust way to force my user to stay on the current page? (This is for a bookmarklet where I graphically manipulate the DOM so I need to be able to click and drag everything, including links.)</p>
  
  <p>I know that even if I can disable the regular click functionality on all anchors it won't do anything for any navigation triggered by other click callbacks on other tags. </p>