How to disable right click in a blog ?

Share Free Online Mock Tests and Study Material
0
Share Free Online Mock Tests and Study Material
0
There are two ways to disable right click

1) To Disable right click – Paste this code in a Widget/Gadget

*********
 <script>
 var isNS = (navigator.appName == “Netscape”) ? 1 : 0;
  if(navigator.appName == “Netscape”) document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
  function mischandler(){
   return false;
 }
  function mousehandler(e){
     var myevent = (isNS) ? e : event;
     var eventbutton = (isNS) ? myevent.which : myevent.button;
    if((eventbutton==2)||(eventbutton==3)) return false;
 }
 document.oncontextmenu = mischandler;
 document.onmousedown = mousehandler;
 document.onmouseup = mousehandler;
  </script>

********

2) The Second method to disable right click is ….

Got to Edit Html
Search for  </head>
After </head> tag, paste this …..    <body oncontextmenu=’return false’>
*******

I dont want right click in my blog
Protect your content from stealing
How to prevent copy paste
Osmanian.com © 2016
Simple Share Buttons