It's very annoying when someone else copies your article and doesn't even take your permission and doesn't give you any credit. If you want to protect your content from being copied, then this article will be very beneficial for you because in this post, We're going to guide you step by step how to Disable Context Menu Using JavaScript With Alert Notification
Disabling right-click, copy and paste or context menu is one of the most popular trick for stopping thieves from stealing blog content.
Without further ado, below is the practical guide on how to disable right-click or context menu using JavaScript with alert messages in Blogger or Blogspot. But, before anything else it is a good practice to always download a backup of your Blogger Theme this way you can easily restore your theme in case something went wrong.
<script type='text/javascript'> //<![CDATA[ var message="NoRightClicking"; function defeatIE() {if (document.all) {(message);return false;}} function defeatNS(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=defeatNS;} else{document.onmouseup=defeatNS;document.oncontextmenu=defeatIE;} document.oncontextmenu=new Function("return false") //]]></script>
<script> /*<![CDATA[*/ eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('h.r=c(e){6(e.7==l){5 4}6(e.8&&e.b&&e.7==\'m\'.9(0)){5 4}6(e.8&&e.b&&e.7==\'n\'.9(0)){5 4}6(e.8&&e.7==\'o\'.9(0)){5 4}6(e.8&&e.b&&e.7==\'p\'.9(0)){5 4}};s a="c t";c d(g){6(f.v=="w"&&g.y==3){i(a);5 4}6(f.k.j("z")!=-1&&u.q==2){i(a);5 4}}h.x=d;',36,36,'||||false|return|if|keyCode|ctrlKey|charCodeAt|message|shiftKey|function|rtclickcheck||navigator|keyp|document|alert|indexOf|appVersion|123|I|J|U|C|button|onkeydown|var|disabled|event|appName|Netscape|onmousedown|which|MSIE'.split('|'),0,{})); /*]]>*/ </script>
oncontextmenu='return false'