how to avoid user to use right click on your website code example
Example 1: how to disable right click in javascript
// for disabling right click use this as it is
document.addEventListener('contextmenu', event => event.preventDefault());
event.preventDefault()
Example 2: disable right click javascript
document.addEventListener('contextmenu', event => event.preventDefault());