Distinguishing between a left and right mouse button click in IE and Firefox
-
09-09-2019 - |
Question
Using JavaScript, how can I distinguish between a left and right mouse button click in IE and Firefox? Do I need I need to do anything different between these two browsers?
Solution
use the onclick
and oncontextmenu
events for left-clicks and right-clicks respectively.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow