Do you want to disable the right-click on the webpage using jQuery? Then you just have to add 4 lines of code to achieve this. We will learn how you can do this with the below code.
The right-click actually prevents the user to view your webpage source and many other things like network request check, style code check, accessibility, etc.
Let’s see the simple 4 line code.
Add the above jquery code in your footer of the webpage (in WordPress you can add in footer.php file) and it will disable the right-click when someone tries to click on the webpage.
See Also: How to Disable right click on Website Using HTML Attribute?
Being Tricky 😉