How to Disable Right Click on Blogger or Websites to Prevent Copy Data

No right-click scripts will keep some people from being able to steal your text and graphics. There are easy ways around it, but it may stop some newbies. Since newbies are often the ones most likely to steal your stuff because they don’t know any better, you’ll might stop some content theft with this simple trick

<script type="text/JavaScript">
//Script courtesy of BoogieJack.com
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>
Note: To copy and paste the code, highlight it by clicking and holding your mouse button down and dragging the cursor from the beginning to the end of the code, then release the mouse button. When you have the code highlighted, press Ctrl + C on your keyboard to copy it. Press Ctrl + V to paste it into your page.

Post a Comment

0 Comments