Share this page 

Disable Browser Context MenuTag(s): Varia


<SCRIPT type="text/javascript">

  function disableContextMenu(element) {
    element.oncontextmenu = function() {
       return false;
    }
}

function onLoad() {
    disableContextMenu(document.getElementById("myimage"));
}

</SCRIPT>
...
<BODY onload="onLoad()">
On this image, you have context menu (right-click)

On this image you have no context menu (right-click)

NOTE: Works on IE but... on Firefox a setting can disable the ability for a script to block the context menu