Answers for "how to say what happens on left click in HTML"

0

how to say what happens on left click in HTML

<button id="button">Alt+Shift+Click on me!</button>

<script>
  button.onclick = function(event) {
    if (event.altKey && event.shiftKey) {
      alert('Hooray!');
    }
  };
</script>
Posted by: Guest on January-14-2021

Code answers related to "how to say what happens on left click in HTML"

Browse Popular Code Answers by Language