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