FrontendDeveloper.in

JavaScript question detail

How do you disable right click in the web page

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>
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399