This is a discussion on How can we block "Right click-refresh" option on a web-page? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; How can we block "Right click-refresh" option on a web-page?using javascript...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| hi <script type="text/javascript"> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!docume nt.all){ if (e.which==2||e.which==3){ return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("return false;") </script> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 1 page site gets #1 in Google for "stock trading" | vadivelanvaidyanathan | Search Engine Optimization | 1 | 02-16-2008 12:13 PM |
| Exception "security block" while connecting to bluetooth device | S.Vinothkumar | Mobile Software Development | 13 | 11-10-2007 03:19 AM |
| I keep getting "Data Missing" when I click the "back" button in my browser. How can I | oxygen | HTML, CSS and Javascript Coding Techniques | 1 | 07-28-2007 01:12 AM |
| Why do I get "HTTP 500" error(or "(DLL)initialization routine failed")in my browser? | kingmaker | ASP and ASP.NET Programming | 1 | 07-20-2007 04:38 AM |
| Difference between a "assignment operator" and a "copy constructor"? | vigneshgets | C and C++ Programming | 2 | 07-12-2007 05:30 AM |