HOW TO DISABLE THE RIGHT CLICK BUTTON ON YOUR WEBSITE

no-right-click-mouse

Suppose  you are a blog writer or run its own site then you always want to prevent other malicious bloggers from copying the content from your blog. You might have written an blogs with  lots of research from the internet and other just copy/paste it on their blog. To prevent such users from copying content from your blog, I will show a Javascript Trick, which disable the right click on your website.

 

Step 1 :- goto your blogger “Dashboard” and click on Layout.

 1

 Step 2 :- Now Click on Add Gadget and select Html/Javascript.

2

Step 3 :- Now paste code given below

<!–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>

 

Step 4 :- now save it.

Leave a Reply

Your email address will not be published.