Saturday, April 20, 2013

How To Disable Right Click On Your Website Or Blog ?

If you own a blog or a website then you always want to prevent other malicious bloggers from copying the content from your blog then follow the steps.

Steps:
1. Got to your blogger Dashboard and then Click on Layout.
blogger widget
2. Now Click on Add Gadget and select Html/Javascript.
blogger widget
 3. Now paste code given below in the pop up window.


<!--MBW Code http://softsekar.blogspot.com/ -->
<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://softsekar.blogspot.com/>

 4. Save it and done. Now users will not be able to right click on your website. 

0 comments:

Post a Comment

 
Animated Social Gadget - Blogger And Wordpress Tips