<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'>
$(window).load(function(){
$("a").click(function() {
return false;
});
$(".toolbar a").click(function() {
console.log("Do something");
});
});
</script>
</head>
<body>
<a href="http://m.hgci.cn">Test</a>
<div class="toolbar">
<a href="#test2">Test 2</a>
</div>
</body>
</html>