How do I disable right click on web page?

Updated on     Kisan Patel

How do I disable right click on web page?

Just add the oncontextmenu attribute to body tag as shown in below code:

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

JavaScript

Leave a Reply