Thursday, September 5, 2013

Blocking Content Copy Script in Blogger


Blocking Content Copy Script in Blogger

Here the Simple java script to block content copy and paste in website or blog. Just add this script in your blog or website under the Head Tag 
eg: <head> // script here </head>


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

How To Block Content Copy in Website

Blocking Content Copy Script in Website

Blocking Content Copy Script in Blog

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers