Wednesday, August 18, 2010

How to disable right click in your blog

The practice of cutting and or copying blog contents and paste them into other blogs or websites without appropriate changes and credit to the original source is regarded as an unethical habit. But, there some people constantly doing this without a feel. This is bad for online presence since there are many other experts who are able to notice this. If you are caught in this practice, it will damage your online presence and credibility. Also, copy and paste takes you nowhere in terms of creativity and good will to learn. If you have to do copy and paste, make a change to that content you copied and give attribute (saying where you get that from).

There is a way for you to prevent your reader stealing your blog or web contents. This is called 'no right click'. The following is the code for that which I got from here.

<SCRIPT language=JavaScript>
<!-- http://www.spacegun.co.uk -->
    var message = "function disabled";
    function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){     alert(message); return false; }
    if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {     alert(message);     return false; } }
    document.onmousedown = rtclickcheck;
</SCRIPT>
It is so simple to apply. All you need to do is do Add Widget and choose Html/Javascript. Copy that above code  and paste it into your widget (right click is disabled here but you can still copy from your menu - so people can still copy with this code). Save and see the result. When someone is trying to right click on your blog or website, a warning saying "function disabled" will appear. You can change this message as you like.

0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More