Disable Right Click on Web Page

In this blog I will explain to disable right click on web page. 

We can disable right click on whole page by adding oncontextmenu handler in body tag of webpage. This will disable right click on each and every control of a webpage.

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