Re-Enable Right-Click When Web Pages Turn It Off
Several web pages turn off the ability to right-click. This examples how to turn it back on.
People are nuts about protecting their web site from unauthorized copying. One of the most frequently used ways to preventing copying is to use javascript to disable the ability to right-click.
Of course, we can use javascript to turn it back on.
When visiting the offending website, type the following into the URL bar of your browser:
javascript:void(document.oncontextmenu=null)
This example works against this page for example:
www.users.totalise.co.uk/~bigoleg/javascript/javascript_disable_right_click.html
If a dialog box opens whenever you right-click, could can often get around it by the following sequence:
Hold the right mouse button, hit enter to close the dialog box, and then release the right mouse button.
This example works against the following web site, for example:
www.cof.orst.edu/net/software/web/html/disable_rtclick.htm
Disclaimer:
Copying websites is not cool… but disabling right click isn’t either.










ihacktheworld said on October 18, 2008
One other thing you could do in relation to the second scenario
is instead of clicking and holding right click
just hit SHIFT + F10 and it will open the right click menu
yeba said on October 29, 2008
you are a god
Peter said on November 10, 2008
Sweet!
I tried: “javascript:void(document.oncontextmenu=null)” now I can right click! This is cool! Thanks!
However, I am still not able to copy any text in the webpage!
jon said on November 12, 2008
Another way websites try to prevent right click is by placing a transparent .gif directly over an image, so that when you right click and hit save, it saves a blank file. this can be averted by ad-blocking the offending .gif and refreshing the page.
odball said on November 12, 2008
great trick many thanx
Pissed Guy said on November 20, 2008
Hi, i stumbled upon this site yesterday and I couldn’t but sharing my experience.
There is this site that provide free wallpaper [NOT PORN !!] download for registered user. After registered, I start browsing for wallpaper (browsing for wallpaper only meant for registered user). When i clicked at the wallpaper image, a new window open with full size wallpaper preview. Then, as usual I right click to save the image. To my suprise, the window immediately closed. Now, I’m pissed.
So i tried this java trick and i got like “user being banned permanently and my IP address displayed”. Okay now I’m really really pissed.
Then I remember that i had this good FIREFOX extension called “SCRAPBOOK” that used to capture a webpage. Yes, It worked. The preview window was captured and I re-open the captured page to save the wallpaper. i should call it Superfox since it always saves me when i’m in some trouble.
I wonder why they would do such thing if they wan to provide free wallpapers. I can accept the register thing but not being able to download wallpaper is way out of line. If they don’t want to share their precious wallpaper then don’t say its FREE or don’t even bother uploading those images.
LukeNewb said on November 20, 2008
Hold the right click down did the trick! You haxxor!
Vipin said on November 22, 2008
Thats what exactly my prob was… i dont have a printer in my home and no internet at workplace… so it was creating difficulty for me while purchasing tickets online… the print screen trick doesn’t help coz… it does not copy the whole ticket…. but the right click + enter helped me to copy it and to paste it in MS Word
Udaya said on January 8, 2009
Great. The trick “right mouse click and hold”. I have to add one more thing.when we do this trick I did like bleow.
right mouse click and hold and move to the messege.then dont unhold the right mouse click and click the ok button with left click.Then messege disapear.Then release the right mouse click.Now you can see the property box.
try it.
thanx.
prakash said on March 10, 2009
great !!!!! it works..and i m happy now :>)
Ryan said on March 11, 2009
This is awesome, thanks.
I added the javascript as a bookmark, so I can just click the bookmark and have my right click back.
ali said on May 13, 2009
its works….
Sean said on May 20, 2009
Fact is, of course, the content is usually automatically copied. All you have to do is rummage through the cache.
MELANIE NEWMAN said on June 28, 2009
CANNOT ENABLE RIGHT CLICK
Anonymous said on July 16, 2009
As the developer of multiple Social Networking Websites, I utilize a right click disable for 2 reasons, 1 is as you stated, to keep people from stealing work. But that is really become a useless means as more and more hackers find ways around it. The 2nd reason was to protect the media of my members that others choose to steal and create fake profiles with it.
With the development of browsers such as Firefox and their add on tools, the issue has less to do with people stealing code now as it does to detering the average person from stealing the photos/video/audio files that belong to the members and sites.
As far as claiming that locking down a site is not cool, it’s also not cool to spend months developing a site option to have someone else come in and take it without paying for it. Would you go into a store and just take a watch without paying? I think not but that is all to often what people seem to think they can do on the internet.
Thanks for the tips you guys are using though to bypass the right click disable and help us circumvent it. Now, where did I put that little .htaccess file?
Anonymous said on August 28, 2009
What is YOUR suggestion concerning the protection of a web author’s intellectual property if disabling right click “isn’t cool”?
cat said on September 4, 2009
If you find that nothing happens when you right-clickhold down the Ctrl key while you click on a webpage, it is a known issue caused by the Yahoo! Toolbar for Firefox.
Yahoo!® has been contacted about this issue.
For now, disabling the Yahoo Toolbar add-on will prevent this issue.
1. At the top of the Firefox windowOn the menu bar, click on the Tools menu then select Add-ons, to open the Add-ons window.
2. Select the Extensions panel.
3. In the list of extensions, select the Yahoo! Toolbar, and click Disable.
Anonymous said on September 27, 2009
It’s more interesting to allow right click at any site altering fire fox config.
about:config
find: contextmenu
double click on it, it’s done.
tom said on March 29, 2010
thank you it workred now if only I could get my numbers on my keyboard to work lol thanks again
Akshitija said on June 18, 2010
It did work for couple of sites but did not work on http://qtp.blogspot.com/2007/04/object-repositories-in-qtp-9-quicktest.html
Xyz said on July 24, 2010
how can i disable right click on my website
Serhii said on September 12, 2010
COOL!
Priestessofsatan666 said on November 11, 2010
dude you suck!!!
Peterw Touch said on December 5, 2010
added 05/dec/2010 ..excellent solution ..tried many other explanations like yahoo toolbar and other add ons…this is the real answer…thank you
famv said on February 15, 2011
small suggestion: change the first 4 words of the article to “people are very worried about”
Anonymous said on February 15, 2011
Why?
Treetopsranch said on April 22, 2011
None of the suggested solutions work for the new yahoo mail. They have disabled right click so that I can not open mail in another tab on FireFox
D. Dean said on September 23, 2011
To all those who are all puffed up cause someone might “steal” their precious photographs: Don’t you just love it when they take a picture of a property that doesn’t belong to them?
D. Dean said on September 23, 2011
Flickr is particularly annoying because people have this “owner has disabled downloading of their photos” when they are taking photographs of people they don’t ask permission to take, and places and things that don’t belong to them.
David Clark said on September 29, 2011
Flickr “owner has disabled downloading of their photos”. Right click on picture/Save as. Find folder to which page saved. The webpage will be there and a folder with webpage contents. In this folder will be the picture. Move picture to pictures folder. Then delete saved webpage (associated folder will also be deleted).
BTW None of the above seems to work on Firefox and Rymans website.
AB said on October 14, 2011
On Windows 7, you can just use “Snipping Tool” to capture and save an image.
Scarlett said on October 15, 2011
Thank you for the assistance on enabling the right click to enable a print function that was disabled.
I am taking college classes and sometimes just want to copy the work to save for studying. I am not trying to steal or sell someone else’s work, I just want to use the material for study. Our college will disable printing so students cannot print quizzes that we have taken. I print the quizzes so I can go back to the book, make notes, figure out why I answered the question right or wrong. Thanks for your assistance.
iKimmybee said on November 3, 2011
Nice disclaimer. :)
helgramite said on November 18, 2011
If you see it as the same size you want, and don’t care about resolution or resizing you can also do a ctrl-prtsc (print screen) to grab the whole thing then take it to photoshop and clip it out, etc. You can also look in your cache too. Be aware this violates copyright if present.