Open top menu

Step 1: Go to your blog’s dashboard, then its layout and add an HTML/JavaScript gadget at any place (e.g. any of the two encircled)

Step 2


Step 3: Paste the below code in the HTML/JavaScript gadget


<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>


After adding the gadget, save the layout settings. Now your blog posts’ text is protected from being copied and the gadget shall not be visible in the blog.

0 comments