-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
<body oncontextmenu="return false;">
This following JavaScript snippet will prevent someone from highlighting your text and using the copy function to copy it and rip it off;
<script type="text/JavaScript">
//courtesy of gumoti.blogspot.com
function killCopy(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=killCopy
document.onclick=reEnable
}
</script>
Read full article from html - Prevent copying text in web-page - Stack Overflow
No comments:
Post a Comment