JSFiddle - React, Tailwind, and code Playground
HTML
<button id="click">Click Me</button>
JavaScript
var count = 0, button = document.getElementById("click");
button.onmousedown = function(e){
e = e || event;
$(this).after("<br/>" + ++count + ". type:" + e.type + "; which:" + e.which + "; button:" + e.button);
};
button.onclick = function(e){
e = e || event;
$(this).after("<br/><br/>" + ++count + ". type:" + e.type + "; which:" + e.which + "; button:" + e.button);
};