Social Icons

Friday, 26 April 2013

HOW TO DISABLE RIGHT CLICK ON YOUR BLOG



Generally I don’t write on tech topics in this section but on special request by a few friend I would share the technique. If you never want any person or machine to copy down your materials from your blog or website you just need to block right click of mouse, so that no one does copy paste of your content. Your efforts will never go in vain; your articles or your web works will remain safe. To prevent such users from copying content from your blog use will JavaScript Trick to disable right click on your blog? 


     1.   Move to your blogger Dashboard and click Layout
         

2.  Now click on Add Gadget and Select Html/JavaScript

 

      3.Now Paste the code
<script language=’JavaScript 1.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>

2 comments:

  1. Good Job Done :)

    ReplyDelete
    Replies
    1. Thanks :) next time use ur profiles to comment :)

      Delete