javascript tutorial

How to Disable Right Click on Blogger?

If you own a blog and you value your precious content then you want to apply this simple trick to avoid being copied by your visitors. I know you have already seen on other blogs as well that they have disabled right click function when you are on their homepage or blog post, this is to protect their unique content from being plagiarized by newbie bloggers that only cares about earning through affiliates or other PPC. You just need to copy this code to your blogger account and protect your copyright content from being used in any other website.

1.  Log in to Blogger Dashboard –> Layout –> Page Elements

2. Click on ‘Add a Gadget’ on the sidebar

3. Select ‘HTML/Javascript’ and add the code given below and click save.

<script language=’JavaScript1.2′>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function (“return false”)
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>