13 November 2009

How to enable right click on site that is disabled

In Fierfox

  1. Got to the menu bar, click on Tool menu and go to the "Option" and click here.
  2. Click on "content".
  3. Click on "advanced" button.
  4. Uncheck the "Disable or replace context menus".
  5. Refresh the page , right click will work.

In Internet Explorer  

  1. Go to "Internet Options" 
  2.  Click the "Security" tab
  3. Click "Custom Level" 
  4. Scroll down to the "Scripting" section 
  5. Set "Active Scripting" to "disable" 
  6. Click "Ok" a couple of times.

How to disable the right click


<html> 
<head>
<script>
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
return false;
}
function mousehandler(e){
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
document.oncontextmenu = mischandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
</script>
</head>
<body></body>
</html>