Is it possible that I can assign a callback function for a right click while I disable the context menu?
$('div').on('contextmenu', function (e) {
e.preventDefault();
return false;
});
$('label').on('click', function (e) {
var btn = e.button;
if (btn == 2) {
alert(1);
} else {
return false;
}
});