To disable the right button function & text Selection function in a web page, simply copy the below code to its section. ........... |
<script language="JavaScript1.2"> 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> <script language="JavaScript">curPage=1; document.oncontextmenu = function(){return false} if(document.layers) { window.captureEvents(Event.MOUSEDOWN); window.onmousedown = function(e){ if(e.target==document)return false; } } else { document.onmousedown = function(){return false} }</script> |
Saturday, December 8, 2012
Home »
Computer Tips
,
How to
,
Java Codes
,
Java Scripts
» HOW TO DISABLE R-BUTTON FUNCTION & TEXT SEL. IN A WEB PAGE
0 comments:
Post a Comment