How can I stop the propagation of the click event so that the browser will NOT redirect?
<a id="theHref" href="http://stackoverflow.com/">SO</a>
<script>
document.getElementById("theHref").addEventListener("mousedown", function(event) {
console.log("href clicked, lets try to stop event propagation");
event.stopPropagation();
event.preventDefault();
return false;
});
</script>