Friday, June 19, 2015

To prevent the right click menu show up

Method 1:

<div id="dialogDiv" oncontextmenu="return false;"></div>

Method 2:

$('#dialogDiv').on('contextmenu', function(e){
  e.preventDefault();
});

No comments: