Wednesday, August 3, 2011

JavaScript for Disabling Right Mouse Click

This is a java script code which will disable right click on blogger post body. This trick can be done by putting the mentioned javascript before head end tag of blogger template or any particular post of the blogger. It is sometimes annoying if someone copies your blog posts,articles,images and another kind of information owned by you saying that they are the original owners of the content.In this case, you can use this trick to block copying of a particular post of yours.

Copy this script and paste it anywhere in blogger post body to disable right click.

<script language='JavaScript1.2'>

//Disable select-text script (IE4+, NS6+)- By Andy Scott

//Exclusive permission granted to Dynamic Drive to feature script

//Visit for this script

function disableselect(e){

return false


function reEnable(){

return true


//if IE4+

document.onselectstart=new Function ("return false")

//if NS6

if (window.sidebar){





<script language='JavaScript'>curPage=1;

document.oncontextmenu = function(){return false}

if(document.layers) {


window.onmousedown = function(e){

if( false;



else {

document.onmousedown = function(){return false}



Post a Comment