| 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> |
Showing posts with label Java Scripts. Show all posts
Showing posts with label Java Scripts. Show all posts
Saturday, December 8, 2012
HOW TO DISABLE R-BUTTON FUNCTION & TEXT SEL. IN A WEB PAGE
By Pavuluri VikramSaturday, December 08, 2012Computer Tips, How to, Java Codes, Java ScriptsNo comments






