How to Disable Right Click Function In Blog or Website

In previous article we discuss about disable copy paste function in blogger but in this post i will tell you a trick about avoiding your content from being copied. This useful trick is also very helpful because as you know that your content is more important for your blogging career. You work very hard and write a single unique post after few hours, and it is not accurate that someone steal your that post's content. So if you want to secure your article's text then read our previous post and if you want to safe your post's images by disable right click function on your website or blog then this trick will help you a lot.
Disable Right Click Function

Disable right click option for your website or blog
When you write an article the it is possible that you must add images to your post and you do not want these images stolen. So this amazing trick will very useful for your website's images, because with this awesome trick right click automatically will have been inactive and reduce the chances of steal your images.

How to disable right click function in Blogger

Go to Blogger Dashboard >> Layout >> Add a Gadget >> HTML/JavaScript, and copy one of the below piece of code as your wish and paste it into HTML/JavaScript.

Copy the Below set of code if you want a message appear when someone click on your blog
When someone right click on your blog a message will appear with dialogue like "Right Mouse Click is Inactive", if you want to change it then simply replace the red dialogue text with your own.
<script language=JavaScript>
//Disable right mouse click Script
// http://www.bloggercell.com
var message="Right Mouse Click is Inactive!";
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){
else if (document.all&&!document.getElementById){
document.oncontextmenu=new Function("alert(message);return false")
// -->

Copy the below piece of code if you want no message appear when someone click on your blog
The below JavaScript code is without massage, if you do no want show up any message then use the below code. It is your choice...
<script language=JavaScript>
//Disable right mouse click Script - No alert
// http://www.bloggercell.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.oncontextmenu=new Function("return false")
// -->
Now save your settings and refresh your blog an see the work of this Script.

Got any Conclusion

This is the simple Disable Right Click trick that can be used for securing your blog's images. If this trick make any conclusion in your mind regarding to this article then ask me freely, i am always available for your help. If our posts are helping you bit then do not forget to share our latest quality posts with your friends on major social media sharing sites like Twitter and Facebook.