title: Disable Right Click in website
body: <p>I have this code below to disable right click. When you hit the right click it says Function is disabled. which works but i want it to show nothing at all basicaly when you hit the right click nothing happens... what kind of magic can we use to do that?</p>
  
  <pre><code>var message="Function Disabled!"; function clickIE4(){ 
  if (event.button==2){ alert(message); return false; } } 
  function clickNS4(e){ 
  if (document.layers||document.getElementById&amp;&amp;!document.all){ 
  if (e.which==2||e.which==3){ alert(message); return false; } } } 
  if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } 
  else if (document.all&amp;&amp;!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") 
  </code></pre>