How to disable right click using jQuery?

To disable right click on a page, use the jQuery bind() method.


You can try to run the following code to learn how to disable right click:

Live Demo

<!DOCTYPE html>
<script src=""></script>
      return false;

<p>Right click is disabled on this page.</p>


Updated on: 11-Dec-2019

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started