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?

Was it helpful?

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
scroll top