How to Disable Right Click on The Page or Element?

It is very easy to diable right click on the page or on particular element.

use     oncontextmenu  property inside the element

Example:

On Page:

<body oncontextmenu=”return false;”></body>

On Element

<div  oncontextmenu=”return false;”></body>

<section oncontextmenu=”return false;”></section>

Advertisements