
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 --></!->
Post a Comment