how to disable right click menu in javascript code example
Example 1: javascript disable right click
document.addEventListener('contextmenu', event => event.preventDefault());
Example 2: disable right click javascript
document.addEventListener('contextmenu', event => event.preventDefault());