disable right click on dom javascript code example
Example: javascript disable right click
document.addEventListener('contextmenu', event => event.preventDefault());
document.addEventListener('contextmenu', event => event.preventDefault());