How To Disable Right Click On Blogger

You might have been noticed that some bloggers don't allow copying contents from their blogs and to do so they disable the right click on their blog.

Simply follow the below steps to disable right click on blogger.

How to Disable Right Click on Blogger Blog:

You just need to follow the step by step tutorial as guided below:

Login to Blogger Dashboard and navigate to Layout.

Click on ‘Add a Gadget‘ on the sidebar or anywhere you like.

Select ‘HTML/Javascript‘ and Paste the below-given code.

<script language=javascript>
<!--
//Disable right click script - By MegaBDwap.BlogSpot.Com
//
var message="Function Disabled";
////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>

Click on Save and You're all done!

Customization: You can also change "Function Disabled" with your own Custom Message. It will display when someone tries to do right click on your blog.

Komentar

Postingan populer dari blog ini

CamScanner Pro License Full Cracked

All Blogger Conditional Tags And How To Use Them

How To Enable Night Mode On Windows 7,8,8.1,10 And Mac