How to Disable Right Click using jQuery

In this small post i will show you how to disable right click using jquery. Here, we will disable right click on page using jquery. we will use the jQuery bind() method for jquery disable right click. when you don’t want your users to download your images at that time you can disble your right click function using jquery.

So, let’s see how to prevent right click option using jquery.

Example :

<script src=""></script>
<h3>How to Disable Right Click using jQuery</h3><script>
alert('right click disabled');
return false;



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

I am Laravel and PHP Developer. I have also Good Knowledge of JavaScript, jQuery, Bootstrap and REST API. Visit Website: