<script language="JavaScript1.2">
// prevent text selection script
<!-- begin
function disableselect(e){
return false;
}
function reEnable(){
return true;
}
document.onselectstart=new Function ("return false");
if (window.sidebar){
document.onmousedown=disableselect;
document.onclick=reEnable;
}
// end -->
</script>
This script will allow your pages not to be selected or prevent users from copying text in your webpage. This was just requested so I decided to post this code, I got this from a tutorial site way back 2003. I have forgotten the site; just search it over the net. Enjoy: D
1 reactions:
thanks...work
Post a Comment