How to disable right click on website or Blogger

1. Log in to Blogger Dashboard, click on Layout then on Page Elements.

2. Click on 'Add a Gadget' on the sidebar.

3. Select 'HTML/Javascript'.

4. Now copy the code below

<script language="JavaScript">
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full <span id="IL_AD2" class="IL_AD">source code</span>, visit http://www.dynamicdrive.com

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


5. Paste the copied code in the 'HTML/Javascript' window.

6. Click Save.


For any query, mail me: tech3lper@gmail.com

Blogger Tips And TricksLatest Tips For BloggersLatest Tips and Tricks


No comments:

Post a Comment

Gallery

About

Your one stop solution for various queries about anything and everything you can think of. Drop an email to me asking your question about anything. Email me at: tech3lper@gmail.com
Register your domain name before anyoneelse does
Advertise here
 Advertise here

Blog Archive

Designed By SBT