Powered by Blogger.

Sunday, October 18, 2015

In , //

How To Disable Right Click Function On Blogger

How To Disable Right Click Function On Blogger :



Hi guyz! I am back with a new trick, In this trick I shall tell you that how you can disable the right click function in blogger blog. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts. Right click on any internet browser is very important element and we must use it when it comes to copy or editing texts and etc. It’s very important when it comes to web masters too. but some people may use it in a bad way, and you may want to make click right disabled on your blog. to protect you text, images links and e.t.c.



1st-> Open Your Blogger Account

2nd->Click On Layout

3rd->Click On Add Gadget

4th->Select HTML/JAVASCRIPT

5th->Put The Following Code


<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Being Geeks
//For full source code, visit http://www.beinggeeks.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>

After adding this widget, If anyone right clicks on your site than a message will appear "Function Disabled!". If you want to add another message there than edit "Function Disabled!".

Please Leave Your Comment

0 comments:

Powered By (Bilal Alyan)

Hello Friends ?

My Name is (Mohammad Bilal) 21year old, live in sargodha,pakistan. am a Blog Designer and Devolper.Read more





Post a Comment

Connect Form

Subscribe via Email

wordpress

Join us on Facebook

Translate

Total Pageviews