To have an element invoke a javascript on selection, instead of going to a new URL, below is an example for it.
Example:
<script type="text/javascript">
function pseudoHitMe() {
alert("Ouch!");
}
</script>
<a href="javascript:pseudoHitMe()">hit me</a>