How To Disable Copying Text in BLOGGER
To know how to do this job and disable forever the selecting content in blogspot blog we i will give provide a chunk of java script code which will completely disable right click on your blogger blog. So below is the step by step guide how to add this code in blogger blog.- Go to Blogger Dashboard:
- Go to layout >> Add >>Html/Javascipt gadget:
- Now past the below given 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>
After pasting the given code click on save and now you are text is being protected from copied.
No comments:
Post a Comment