from link:http://javascript.about.com/od/hintsandtips/a/worst.htm
<1>No Right Click Scripts:
The biggest mistake that people starting out with Javascript make is to try to use it to block their visitors access to the source of their web page. The most common way that they try to do this is using a No Right Click script.
While some of these scripts are effective at disabling the right mouse button and in some cases even keyboard access to the context menu these scripts only achieve that much in some browsers. Other browsers realizing how pointless such a script actually is will ignore any attempt to block the context menu.
Such scripts are pointless because there are too many ways that your visitors can get around such a script eg. by turning off Javascript, by running a Re-enable Right Click Bookmarklet or simply by using one of the many other ways of accessing your page source that doesn't involve the context menu.
What makes using such a script even worse is that it blocks your visitor's access to the other options within the context menu that they may wish to legitimately use to navigate around the web.
Overall using such a script on your web site will drive your legitimate visitors away, not stop any would be thieves from stealing your images or viewing your page source, and will generally show people that you do not understand very much about how the web works. You should never have any reason to use such a script on your site (except where you are providing a working example of how useless such scripts are).
from link:http://javascript.about.com/od/hintsandtips/a/worst.htm
<1>No Right Click Scripts:
The biggest mistake that people starting out with Javascript make is to try to use it to block their visitors access to the source of their web page. The most common way that they try to do this is using a No Right Click script.
While some of these scripts are effective at disabling the right mouse button and in some cases even keyboard access to the context menu these scripts only achieve that much in some browsers. Other browsers realizing how pointless such a script actually is will ignore any attempt to block the context menu.
Such scripts are pointless because there are too many ways that your visitors can get around such a script eg. by turning off Javascript, by running a Re-enable Right Click Bookmarklet or simply by using one of the many other ways of accessing your page source that doesn't involve the context menu.
What makes using such a script even worse is that it blocks your visitor's access to the other options within the context menu that they may wish to legitimately use to navigate around the web.
Overall using such a script on your web site will drive your legitimate visitors away, not stop any would be thieves from stealing your images or viewing your page source, and will generally show people that you do not understand very much about how the web works. You should never have any reason to use such a script on your site (except where you are providing a working example of how useless such scripts are).