»
EnglishFrenchVietnamese

Print - Select Text Content Prevetion - JavaScriptBank.com

Full version: jsB@nk » Security » Mouse » Select Text Content Prevetion
URL: http://www.javascriptbank.com/select-text-content-prevetion.html

Select Text Content Prevetion © JavaScriptBank.comDisable ability to select text of visitors on your page by installing this security JavaScript. With it, selecting and dragging the mouse over page text has no effect. Works in both IE4+ and NS6.

Full version: jsB@nk » Security » Mouse » Select Text Content Prevetion
URL: http://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>