How To Handle Right Click Action On Any Element On The Browser

Bind an event handler to the “contextmenu” Javascript event using jQuery.

This captures any Right Click event happening through out the web page.

Now if you want to handle Right Click on a particular element, you can do so by doing something like this: