JSFiddle - React, Tailwind, and code Playground

by Matt Ball

HTML

<script>
function myFunction(e) {
    // http://www.quirksmode.org/js/events_access.html
    var event = e || window.event;

    // https://developer.mozilla.org/en-US/docs/DOM/MouseEvent
    if (event.ctrlKey || event.metaKey) return;

    alert("Hello World!");
}
</script>

<a href="http://google.com" onclick="myFunction()">Click</a>