Is it possible to suppress the browser's context-menu that appears when you right-click on a page?
I want to respond to a right-click via checking "event.button == 2" like so:
-
"mousedown #imgPostTravelBottom": function (event) {
if (event.button == 2) {
$( "#dialog" ).removeClass('hide');
$( "#dialog" ).dialog();
}
},
...but although it works (the dialog displays - in the middle of the page), so does the browser's element-specific context menu; for example, when right-clicking on an img, the browser invokes a context menu which displays menu items such as "Save image as..." etc.
Can I suppress the displaying of that context menu?