There is a question for bloggers always that their content should not be copied by others.So,Let's See How to disable Right Click option in blogger or website!
This Code is For disabling copy option in blog site:
Goto Dashboard->Layout->Add Gadget->Add HtmlScript
and paste the following code in there.
<script language="JavaScript">
<!--
//Disable right mouse click Script
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>
Save the Script and place the widget anywhere you like.It will work for whole blog.Now,when you try to copy content using "Right Click",It wont work.
Do Comment,If Yoy Like the post.
This Code is For disabling copy option in blog site:
Goto Dashboard->Layout->Add Gadget->Add HtmlScript
and paste the following code in there.
<script language="JavaScript">
<!--
//Disable right mouse click Script
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>
Save the Script and place the widget anywhere you like.It will work for whole blog.Now,when you try to copy content using "Right Click",It wont work.
Do Comment,If Yoy Like the post.
0 comments:
Post a Comment