右クリックのポップアップメニューを備えたdivがあります。
// Attatch right click event to folder for extra options
$('#fBox' + folderID).mousedown(function(event) {
if (event.which == 3) {
// Set ID
currRClickFolder = folderID;
// Calculate position to show popup menu
var height = $('#folderRClickMenu').height();
var width = $('#folderRClickMenu').width();
leftVal = event.pageX - (width / 2) + "px";
topVal = event.pageY - (height) + "px";
$('#folderRClickMenu').css({ left: leftVal, top: topVal }).show();
}
});
ただし、この要素のブラウザは引き続きデフォルトメニュー(コピー/貼り付け/プロパティなど)をポップアップします。これを無効にする方法はありますか?私はfalseを返そうとしましたが、運はありません。