Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to disable the ability of a web site to to turn off my context menu in IE. I do not want to turn off javascript entirely, I just want to prevent javascript code from intercepting the right click event. Firefox lets you do this with a checkbox in the user preferences dialog. I can't find an equivalent in IE. I am currently using IE8.

share|improve this question
1  
Opera also provides this option (right-click on the web page -> "Edit Site Preferences..." menu option -> "Scripting" tab -> "Allow scripts to detect context menu events" checkbox {enabled by default}). –  Randolf Richardson Nov 10 '11 at 21:09
    
maxthon2 which uses the IE engine has a plugin for rightclick enable. You gotta figure if they were intent on keeping the user controlled, it would actually work on something :-) –  Psycogeek Nov 10 '11 at 21:26

4 Answers 4

I don't know of any setting or registry tweak that can do this, however you may be able to re-enable the context menu on a page-by-page basis by entering this into your address bar:

javascript:void(document.oncontextmenu=null)

You can create a bookmark with this as the URL to make it easier to use.

This should work on most sites that disable the context menu. Until and unless a setting becomes available in IE, though, your best bet (and not only for this particular issue but for browsing in general) would be to use a different browser.

share|improve this answer
    
I don't use IE except at work to access some enterprise web apps that seem to go out of their way to only work on IE. I was trying to debug an issue with one and realized how spoiled I am by firefox and chrome. I really wish our bean counters would specify something like "must work in at least one non ie browser" when they put out software RFP's. –  Peter Nov 11 '11 at 6:18
    
Also, the javascript snippet you posted is helpful in many cases, but it doesn't work on the particular page that made me annoyed enough to post this question :) –  Peter Nov 11 '11 at 6:23
    
@Peter Been there. There's an application my company uses which is an ActiveX Control based web app. It requires a 32 bit version of IE6 to run, and must be run with Admin rights. Luckily, I don't have to use it much. –  Andrew Lambert Nov 12 '11 at 6:05

For IE 8, you go to Tools/Options/Content

Click Advanced to the right of the Enable Javascript checkbox.

Uncheck the context menu checkbox.

Edit:

http://www.howtogeek.com/howto/internet/prevent-annoying-websites-from-messing-with-the-right-click-menu-in-firefox/

share|improve this answer
    
I am trying to do this in IE. Your link and your instructions are both for Firefox. In fact, I mentioned in my question that I already know how to do this for Firefox :) –  Peter Nov 11 '11 at 6:21

If you're like me and trying to view the source of some enterprise web-app with a custom context menu in a pop-up window with no location bar, no status bar, and no menu bar don't panic. You can get to everything you need just by pressing F12 and bringing up the developer console.

share|improve this answer

I know this is for IE8, but for people like me, coming to look for IE9 at least, Shift+Right click seems to work. Try it in IE8 and let us know.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.