Google+

Tuesday, June 4, 2013

How to disable Right Click on your website or blog ?

You may have noticed some of the website won't provide the Right click functionality to prevent the web user from copying the content from their website.You may wonder how did they does this ?
Here Let me teach you how to prevent the web user from copying your private content form your blog or website.

Steps :

  • Go to Your blogger Dashboard and click on the Layout option.
  • Click on Add Gadget and select the HTML/Java script.
  • In the POP-UP window that opens type the following code.



<!--MBW Code-->
<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>

<!--Code End http://mybloggersworld.blogspot.in>

Save it.Thus you are done.Now the right click option is disabled.


No comments:

Post a Comment