Disable Right Click using jquery

added by composeme
10/7/2010 2:05:33 PM

-2 Kicks, 82 Views

There is one line of code in jQuery as compare to java script code


2 comments

threenine39
10/8/2010 1:37:28 AM
It is such a pointless endeavour disabling the right click. If people want your images are view your code they will get it no matter what. By disabling right click to prevent people from opening links in a new tab is just pointless, makes your site less user friendly and may lose you customers in the long run.

You should probably read this article for more background info

http://articles.sitepoint.com/article/dont-disable-right-click

sdorman
10/8/2010 8:28:17 AM
At one point (granted that was a while ago) it was very popular to do this. The idea behind doing this, generally, is to protect images and/or HTML from being downloaded. There are, as the site you point to indicates, other ways to do this that are better and less frustrating to users.