disable context menu when right click jquery code example
Example 1: javascript disable right click
document.addEventListener('contextmenu', event => event.preventDefault());
Example 2: disable right click jquery
//Disable mouse right click
$("body").on("contextmenu", function(e) {
return false;
});