jQuery prevent all link clicks on a page
$('a').each(function(){ $this = $(this); $this.click(function(e){ e.preventDefault(); }); });