How to block copy paste in blogger | code

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


Firstly you need to go in layout section, after that you need to click "add a gadget" after you need to select 4th option "html/JavaScript" 

After that you need to paste the code in content 

Post a Comment

1 Comments

If you have any problem in code write in comments!