Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
 
PREVIOUS NEXT
Tagged: #left #click #HTML
ADD COMMENT
Topic
Name
1+3 =