Showing posts with label How To Disable Right Click In Blogger. Show all posts
Showing posts with label How To Disable Right Click In Blogger. Show all posts

How To Disable Right Click In Blogger


Disable Right Click In Blogger



  • Go to Blogger Account >>> Blogger Dashboard.
  • After Selecting Layout Tab will Open. Click On" Add a Gadget ".
  • Now a again a New Window will Open.Here select " HTML/Java Script.
  • Now Copy the Given Below Code and Paste it Here.

<script language=javascript>
<!--

//Disable right mouse click Script
//For full source code, visit https://sudhirsahoo84.blogspot.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.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>




  • Now Save the open window


Click Here to copy



Share:
Copyright © sudhirsahoo84 | Powered by Blogger