Nepal Flag
"Would you Like to Post any thing related to This blog you can send E-mail to me guidedinesh@gmail.com or dinesh_tamang33@yahoo.com"तपाईंहरु पनि यो साईटमा भएका बिषयहरु सँग सम्बन्धित आफ्ना लेखहरु पोस्ट गर्न चाहनु भने तल दिईएको ठेगानामा पठाउनु हुन अनुरोध गर्दछु साथै विज्ञापन तथा अन्यको लागि सम्पर्क ठेगानाः guidedinesh@gmail.com or dinesh_tamang33@yahoo.comतपाईंहरुबाट प्राप्त भएका आर्टिकलहरुलाई सकेसम्म चाडै तपाईंहरुकै नाम दिएर प्रकाशित गरिनेछ ।

How to Disable right click on blogger



Login To Blogger Go To > Design > Page Elements.

Simply add a Gadget of HTML/JavaScript type.

add this code in to it:

<script language="JavaScript">
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.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>
Now click save.

or here is another way

Login To Blogger Go To > Design > Edit HTML.

and mark the tick box "Expand Widget Templates"

Then, find (CTRL+F) this code in the template.
</head>
And immediately before it, paste this code:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>

<script type='text/javascript'>
//<![CDATA[

$(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});

//]]>
</script>
Now save your template and you are done.

0 comments for "How to Disable right click on blogger"

Leave a reply

DineshTamang.com.np भ्रमण गर्नु भएकोमा यहाँहरु लाई मुरी-मुरी धन्यवाद् छ। कृपया फेरिपनी DineshTamang.com.np चियाउदै गर्नुहोला। तपाईंको दिनहरु सधैं शुभ-रहोस्। धन्यवाद् ।

Sorry

Enter your email address:

Most Popular

Search In This Blog

Popular Posts

Tag Cloud

Recent News