Have you noticed, Some websites don't allow right mouse click while visiting the website. Right Click is come in use when we are going to copy or edit text from webpages. This function is also most commonly used by Webmasters during Web Development. This function can also be used in blogger. By using this function, you may protect your copyright contents from being used on another blog or website. But this is not the solution. Most of the people come on your website or blog to read information and very small number of people to steal your contents. So, According to some people, this is unprofessional and insulting of visitors. If you want to disable right click on your blog, use this simple javascript code method.
Code:
<SCRIPT language=JavaScript>
<!-- http://www.spacegun.co.uk -->
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>
Where to Paste this Javascript in Blogger
- Sign in to Blogger
- Goto Layout > Add a Gadget > HTML/JavaScript
- Paste code in the field and Save.
How it Works
When a visitor right click on your blog, a pop up box will be shown saying Function Disabled. If you want to use their custom text replace Function Disable with your text in the code.Get Latest Updates
0 comments:
Post a Comment
We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually us according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden.
Regards:
Zaka Ur Rahman