Sách mả nguồn Javascript/Chống sao chép nội dung trang mạng

  • IE
<SCRIPT language=JavaScript type=text/javascript>
document.write('<body ondragstart="return false" onselectstart="return false">');
</script>
  • Both IE and NS
<SCRIPT language=JavaScript type=text/javascript>
function disableselect(e){return false}
function reEnable(){return true}
 
//if IE4+
 
document.onselectstart=new Function ("return false")

 
//if NS6
 
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>