how to make a page disabled from right click code example
Example 1: disable right click
document.addEventListener('contextmenu', event => event.preventDefault());
Example 2: how to disable right click in javascript
// for disabling right click use this as it is
document.addEventListener('contextmenu', event => event.preventDefault());
event.preventDefault()