The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

How to disable right-click on BLOGGER

juzlee

Member
Some of the users that use blogger didn't know how to disable right-click on your content. I hope this may come useful for the users here:

1) Go to Blogger's Dashboard>BLOG>Layout>Add a Gadget>HTML/Javascript
2) Leave the subject as BLANK & in description box copy/paste this code:
Code:
<script language="JavaScript">
<!--

//<span class="IL_AD" id="IL_AD1">Disable</span> right click script III
//

var message="YOUR MESSAGE HERE";
///////////////////////////////////
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>

3) Click on Save
 
1. create a html/javascript
1. Add code:
<script>
oncontextmenu="javascript:return false;"
</script>
 
banners
Back