»
Tiếng AnhTiếng PhápTiếng Việt

In - Cấm copy và chọn trên web - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Bảo mật » Con trỏ chuột » Cấm copy và chọn trên web
URL: https://www.javascriptbank.com/select-text-content-prevetion.html

Cấm copy và chọn trên web © JavaScriptBank.comCông cụ để bảo vệ trang web như không cho copy nội dung, không cho sử dụng chuột phải.

Phiên bản đầy đủ: jsB@nk » Bảo mật » Con trỏ chuột » Cấm copy và chọn trên web
URL: https://www.javascriptbank.com/select-text-content-prevetion.html



JavaScript
<script language="javascript">function click() {if (event.button==2) { alert('Sorry, right click is unavaible!') }}document.onmousedown=click</script><SCRIPT language=JavaScript1.2>function disableselect(e){return false}function reEnable(){return true}//if IE4+document.onselectstart=new Function ("return false")//if NS6if (window.sidebar){document.onmousedown=disableselectdocument.onclick=reEnable}</SCRIPT>