JavaScript・jQueryでブラウザ標準の処理をキャンセルできます。
HTML
| 1 | <a href="#" id="sample">CLICK HERE</a> | 
jQuery
| 1 2 3 4 | $('#sample').on('click', function(e) {     e.preventDefault();     alert("Do not clichk here."); }); | 
hrefの「#」に遷移することなく、alertが表示されます。