0 votes
in JavaScript by
How do you disable right click in the web page in Javascript?

1 Answer

0 votes
by

The right click on the page can be disabled by returning false from the oncontextmenu attribute on the body element.

<body oncontextmenu="return false;"></body>
...