1//Disable mouse right click
2$("body").on("contextmenu", function(e) {
3 return false;
4});
1// for disabling right click use this as it is
2document.addEventListener('contextmenu', event => event.preventDefault());
3event.preventDefault()
1document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
2
1document.addEventListener('contextmenu', event => event.preventDefault());
2
3// ⇓ Test it (fiddle) ⇓