JustBeingHelpful
JustBeingHelpful

Reputation: 18980

Override site specific JavaScript right click context menu with browser specific right click context menu

Is there a way in Mozilla Firefox, Internet Explorer and/or Google Chrome to override the site specific right context menu (launched via JavaScript) so that the browser context menu shows instead? I want to be able to use the browser add-on options in the context menu, but some sites don't allow this. If you have any experience with any of these browsers, please respond and I will up-vote you.

One example:

Open Google Mail and right click a message in your inbox.

Upvotes: 5

Views: 3908

Answers (1)

Varunkumar Nagarajan
Varunkumar Nagarajan

Reputation: 2037

The site admins generally do this for security reasons. However, you can get around this easily if you know bit of HTML / JavaScript. Just tweak your 'mousedown' / 'click' handler. In case of jQuery, you might want to disable 'contextmenu' event.

There are some browser extensions to achieve this

Upvotes: 1

Related Questions