Tuesday, November 16, 2010

Re-Enable Right-Click When Web Pages Turn It Off


Inam yeh poste behdard bokhor : )




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, you 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.


Contributed by AlexTheBeast

No comments:

Post a Comment