How to Disable Right Click Function in Blogger Blog Posts

by Dinesh 2014-06-06 17:52:50

Do you want to product your blogger post contents via disable copy function. Use this simple java script to stop copy text from your posts.

1. Login your blogger account.
2. Goto dashboard -> Add Gadget
3. Select Html/Javascript option
4. Now copy the following code to "Html/Javascript" gadget and save the template.
<script type="text/javascript">
    //Disable select-text script (IE4+, NS6+)
    function disableselect(e) {
        return false
    }
 
    function reEnable() {
        return true
    }
    //if IE4+
    document.onselectstart = new Function("return false")
    //if NS6
    if (window.sidebar) {
        document.onmousedown = disableselect
        document.onclick = reEnable
    }
</script>

Now reload or refresh your blog.
656
like
0
dislike
0
mail
flag

You must LOGIN to add comments