How to disable right click using jQuery ?

How to disable right click on web page using jQuery ?

In this tutorial, you will see how to disable right click button on browser using jquery. Disable Right Click on Website Using JQuery.

.bind() method and contextmenu event are used for this purpose.

we have used .bind() method for attaching contextmenu event handler with document. The contextmenu event fires when the user right clicks on element.

<!DOCTYPE html>
<html lang="en">
    <title>How to disable right click using jQuery</title>

    <script src=""></script>
        $(document).ready(function () {

                alert('Right Click is Disabled');
                return false;



Thanks for reading.

© Copyright - 2018 - 2023 | All rights reserved at Funda of Web IT