disable right click javascript

JavaScript
//Disable mouse right click
$("body").on("contextmenu", function(e) {
  return false;
});document.addEventListener('contextmenu', event => event.preventDefault());
Source

Also in JavaScript: