disable-right-clickToday I would like to let you know about disabling right click on your blog. This practice is used to prevent people from copying your specific images and other objects. I'm sharing a simple JavaScript code that will automatically disable the right click on your blog. By using this script you can also protect your content from being copied. Because anyone won't be able to right click on your entire blog.
By using JavaScript we can add functionality to our websites and also to our blogger blogs. And I'll teach you how to add this script to yourblogger blogs. Because, this blog is specifically created for blogger tricks and tutorials. However, we'll also share tutorials regarding web designing, web development and Photoshop.

How to Disable Right Click on Blog?

Now just follow given steps below in order to disable right click on your blog:
  1. Go to Blogger Dashboard
  2. Layout >> Add a Gadget >> And add an HTML/JavaScript Gadget
  3. Copy below code and paste it inside HTML/JavaScript gadget
<script language=javascript>
<!-- http://www.every1posts.blogspot.com -->
var message = "function disabled";
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){     alert(message); return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {     alert(message);     return false; } }
document.onmousedown = rtclickcheck;
</script>
Save the gadget and you're done, now view your blog and right click any part of your blog, it will show a pop up box saying; right click is disable.
Enjoy the tutorial and do comments if you have. Stay peaceful.

Post a Comment

Thanks You For FeddBack! :)

 
Top