How to disable right click function

There are many ways how you can disable plagiarism or may be that you want your visitors to open up links pointing out in the same window, and one way that will come to our mind is the javascript function is to disbale the right click. This function cannot be that effective when it comes to plagiarism, because a smart thief who wants to plagiarise will have several ways on doing this.

So now that you want to add this function so what you can do is add this function to your blog
<script language=JavaScript>
//Right mouse disable Script
//By Maximus (maximusatnsimail.com) (http://bloggers-university.blogspot.com/)
var message="Function Disabled!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layersdocument.getElementById&&!document.all){
if (e.which==2e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
</script>


You can add this code by

  1. Login to your Blogger Account

  2. Click on Layout

  3. Click on Add a Gadget

  4. Click on Add HTML/Javascript

  5. And paste the above Javascript code

  6. Save and your done.


The script source code was extracted from HtmlCodeTutorial



Hope you like this post of ours, to read more post of similar and many more on blogging, enter your email and subscribe with us to recieve updates of this blog via email or subscribe to as a reader.
Subscribe in a reader


Bookmark this post:
StumpleUpon Ma.gnolia DiggIt! Del.icio.us Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google



Do you think this post is worth reading and would you like to help our work, if so please bookmark this post for us and lets share it with others.

Link to this post:

People who read this post, also read:



Comments :

0 comments to “How to disable right click function”
:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Post a Comment

What do you think of this post ?

Newer Post Links Older Post Links Go To Home