Clicking on a Button --- How to set the default mouse click to "right" instead of "left"


(Quint Rahaman) #1

Is there a way via javascript to change the default mouse “left” click to select an HTML button, etc to using the “right” mouse button to execute the selection?

Apparently “gamers” are accustomed to using the “right” mouse button to kill, blow stuff up, etc. :wink:


#2

Hi Quint!

Maybe this is what You are looking for…

https://www.w3schools.com/jsref/event_button.asp