- HubPages»
- Technology»
- Internet & the Web
How to Enable Right Click on Any Webpage or Website

Why Right Click?
Right clicking your mouse can be very useful when surfing the web. It allows you to save images on webpages to your hard disk, to view source of a particular webpage, to download background music from a blog (when website code isn't complicated), and much more.
Now days, many websites and blogs doesn't allow you to right click on their websites. I studied HTML and basic web designing, so I like to look at webpages' HTML codes when I find a new interesting website. And it makes me angry to find out that I can't right click. But as you know, there is always a way to get around something. This hub will teach you how to right click on web sites where it's not allowed.
Follow These Simple Steps to Right Click
- Click on [Favorites] on the top of the browser.
- Click on [Add to Favorites...].
- When Add Favorite box pops up, enter a name that you can easily remember later such as Right Click. Then click [ok].
- Click on [Favorites].
- Find the Right Click button you just created, then right click on it. Then click [Properties].
- On the Web Document tab, copy and paste the following code:
javascript:function r(d){d.oncontextmenu=null;d.onselectstart=null;d.ondragstart=null;d.onkeydown=null;d.onmousedown=null; d.body.oncontextmenu=null;d.body.onselectstart=null;d.body.ondragstart=null;d.body.onkeydown=null; d.body.onmousedown=null;};function unify(w){r(w.document);if(w.frames.length>0){for(var i=0;i<w.frames.length;i++){try{unify(w.frames[i].window);}catch(e){}};};};unify(self); - Click [OK]. A message will popup stating "The protocol "javascript" does not have a registered program. Do you want to keep this target anyway?". Click [Yes]. This won't do any harm to your computer.
- Now you are ready to right click on any webpages. Whenever you find a webpage you cannot right click, just go to [Favorites] and click on the [Right Click] button you've created.
- Enjoy!
Comments
Thank you!
It still works after all these years!
Wow, I can't believe this actually worked! Thanks so much :D
Awsome.... it works on IE and Chrome... Thanks for the code....
Thanks,works great on Firefox.
Works like a charm! I use this in Chrome :)
Shift+right click works in Firefox.
@Cassy27
If you still can not COPY use this:
In Firefox: Tools - Options - Content and then uncheck Enable JavaScript!
Another way to do this is to use above code, and then mouse right click and choose View Page Source. From there you can COPY everything you like.
Cheers
Thanks for providing this information.
Great solution. Thanks so much!
Thank youso much for your help. This allowed me to save a copy of dear pictures that I found in the web
Well it allows you to right click in Firefox but I cannot COPY and that's the whole point. Better feedback replies than in this article.
very good.
it works in firefox.
COOOL
thx Saravanan Seerangam it worked perfectly
Hi , Its excellent.
It worked for me.
I was in damn need of it.
Thanks a Lot.
So as to say when you are using Mozilla Firefox if you wanna to copy something from your prefer website, navigate to Options - Content - then uncheck Enable JavaScript.. it actually when I browse this hub aside from putting that JavaScript i just disabled running JavaScripts to my prefer website to copy text from it.
absolute genius.
Beatiful tip, it really work
Thanks a lot
Thanks for posting this how-to page. It worked brilliantly.
Sweet!! Works great!
the tip by Saravanan Seerangam made the difference for me.
for Firefox/Chrome:
=Term [Favorites] is the same as [Bookmark].
=Web Documents are the same as Location on Firefox Bookmark
Wow.. it's working. it's very simple. Thanks for your information
Just what I needed. Excellent work.
Thanks
i cant get it have any ether ideas
broseph u so awesome
You my friend are a real life saver. Had to do it twice but the second time it worked perfectly in IE9. I'm a happy camper again. Thank you
Saravanan Seerangam 1 minute ago
Sorry,for missed the Subject line
Below for Firebox Browser
Go to Tools -- Options.
Go to the Content tab.
Here you'll see a lot of checkboxes. Look at the bottom one that says "Enable Javascript". Click the Advanced button next to it.
Now you've got a little window with even more checkboxes! There is one in there that says Disable or replace context menus. Uncheck this box.
Go to Tools -- Options.
Go to the Content tab.
Here you'll see a lot of checkboxes. Look at the bottom one that says "Enable Javascript". Click the Advanced button next to it.
Now you've got a little window with even more checkboxes! There is one in there that says Disable or replace context menus. Uncheck this box.
great it works.
thans a lot
Surprise....it worked on Google Chrome!!!!
really wonderful ! It works for firefox also. Thank you hyunchang.
For firefox you just add the current or any web page to bookmarks and go right click on it, rename it as hyunchang said and paste the code in the location window.
thnxxxxxxxxxxxxxxx muwwwwwwwwwwwwwwwwwwaaaaaaaaaaaaa
Thanx a ton :)
@mr Aung
this trick works for "websites"...not for "photos" embeded on them...use snipping tool dude!!!
I tried IE9 and Firefox and all not succeed for this page
"http://www.pbase.com/consoli/image/96431444" always show "Right Click disabled".
You may test by yourself..NO WORKING!!!!!!! I waste my time.
how do i do it ? >"< i cant find the properties thingy when i right click the button webpage i saved as favourites
thank you
U dont need to save it as Favorites or anything else, just copy and paste that java script,and it will work.
thanks a lot
Sorry for the bad comment...
It's wonderful, it's worth it,I did it, all you have to do is follow the step but if its not functioning, try again the 8 steps and wait for few minutes... And try it again!!!!
Good job....
I loove it...
It's not functioning... Huhuhu...
I need it badly!!! Another suggestion you can suggest?
Thanks!
nice.. tutorial.. now I can take the image if protect from the website
thanks a ton....
Ur a genius!! Saved me sooo much time! THANK U!!!!
This code does work Thank you a million times!!!! I had a webpage that I created many yrs ago of my dad & I in honor of him and the background was of the both of us around the same ages he has deceased now for over 20yrs and by using this code you gave it allowed me to save the backgroud picture I made!!!! Again thank you for posting the code
AWSOME !!!! IT WORKED
This still hasn't worked for me. :(
I am trying to get my picture urls off my own website, they are not hidden. My right click just wont work on any web page???? can anyone help with this
the best and easiest way to enable right click is just move to this blog and read the topic.
not able to activate rightclick
Thank you, You just saved me weeks or work Perfect your the man
you are a genius
bagabagam mit
Thnaks a lot, this even works in Opera!
This is for IE, correct? I'm using Firefox. Can you still help me? Thank you!
thanks a lot. it worked.
58