Disable Right Click / Copypaste in blogger - TIMES OF MIZORAM

Home Top Ad

Post Top Ad

Disable Right Click / Copypaste in blogger

Disable Right Click / Copypaste in bloggerWe all know what the usefulness of right click in Windows  and Web and how it works. At it’s best, the menu can be a hugely valuable resource to get certain tasks accomplished more quickly than digging through programs and type settings to do the same thing. But what if this menu is getting in your way for some reason and you want to disable it?

If you are looking for a simple way to disable right click for any html element then here you will find the best solution to disable right click on page.

There are some reasons why you will disable the right click of mouse button:
1. To protect contents.
2. To protect plagiarisation of your work.
3. To protect every content in your blog/web.

Plagiarism and Copyright are similar in some aspects, however the two are distinctively different. Plagiarism is claiming attribution for a work you did not author, or using someone else's work without proper attribution. Copyright infringement is using someone else's work without obtaining their permission.

How to Disable Right Click / Copypaste in blogger

Steps to Disable Right Click:
1. Copy the following any codes and add new html gadget in your blog.
2. Save the setting and enjoy this widget/code.

You can use any of the code below or both together. 

CODE 1:

<script language=javascript>
<!--
//Disable right click script - By www.exploremizoram.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>


CODE 2:

<!- start disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script>
<!-- End disable copy paste --></!->

Disable Right Click / Copypaste in blogger

No comments:

Post a Comment

Post Bottom Ad