Code Try to right click in this window. if (typeof document.oncontextmenu == "object") { if (document.all) document.onmousedown = captureMouseDown; // IE else document.oncontextmenu = captureMouseDown; // Safari } else { window.oncontextmenu = captureMouseDown; // FF } function captureMouseDown(evt) { var mouseClick; if (evt) mouseClick = evt.which; else mouseClick = window.event.button; if (mouseClick >= 1 && mouseClick <=3) { alert('Context menu disabled'); return false; } }