I am working on a web app in which I want to have a different action happen to an element whether I left or right click on it.
So I first added a function to handle the click
event with jQuery, and then added a second function to handle the oncontextmenu
attribute of my element.
This is working well in Chrome & IE but causes a problem in Firefox: When I right click on an element, my function that handles the left click is surprisingly called, and then my function that handles the right click is called.
How can I make Firefox not call the left-click function when I right click?