JSFiddle - React, Tailwind, and code Playground
by Mark
HTML
<a href="http://example.com">link</a>
JavaScript
$(document).mousedown(function(e){
switch(e.which)
{
case 1:
alert("left click");
break;
case 2:
alert("middle click");
break;
case 3:
alert("right click");
break;
}
return true;// to allow the browser to know that we handled it.
});