JSFiddle - React, Tailwind, and code Playground

HTML

<a href="http://google.com">Google</a>
<a href="http://bing.com">Bing</a>
<a href="http://yahoo.com">Yahoo</a>
<h1></h1>

JavaScript

$('a').bind({
    mousedown: function(e){
        $('h1').html($(this).text());
        alert(e.preventDefault());
        e.preventDefault();
    },
    click: function(e){
        e.preventDefault();
    }
});