document.addEventListener('contextmenu', event => event.preventDefault()); // ⇓ Test it (fiddle) ⇓