Disable right click in Blogger / Website with Javascript

Disabe-right-Click-in-Blogger
Friends Now I am telling to you about the new way to Disable right click on your Website and Blogger Page with JavaScript Code. In Previous article I discussed about " Disable right click without JavaScript". Before adding any of the below source code to your web page to disable the right-click we highly suggest that you consider an alternative solution to protecting your data.

Today, many of the code examples used to disable the right-click no longer work in most browsers and browsers such as Opera do not allow the right-mouse button to be disabled. In addition to this issue disabling the right-click can cause serious accessibility issues and often only angers users.

Tutorial Disable Right Click with Javascript

Have you noticed, that some web sites do not allow their visitors using right mouse click while pointer is on the blog area. 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 webmasters 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 etc.
Learn This :
Disable Right Click without Javascript
Disable Right Click with Javascript/Non-Javascript (Which is better)

How to do this:

Step 1 : Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
Step 2 : Copy the below code and paste it in that blogger widget.

<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Being Geeks
//For full source code, visit http://www.btechallsolutions.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>
Step 3 : Save the html/javascript and view you blog.


That’s all.
Save the Template and see the Results.

Feedback!
This was all about how to "Disable Right Click on Website/Blogger With JavaScript". Please post your valuable feedback through comments. I tried my best to explain this tutorial but still if you have any doubt then feel free to ask me. Thanks!
Tags and Keywords
right click disabled with java script, disable right click, right click not work, remove right click from blogger, save blogger contents, right click disabled, right click not working, hide right click

Post a Comment

Thanks for your comment.We appreciate with a positive response.
We’re enthusiastic to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.

Previous Post Next Post