Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> </head> <body> <h2>Right-click disabled</h2> <p>For this page the right-click is disabled.</p> <script> $(document).ready(function() { $("body").on("contextmenu", function(e) { return false; }); }); </script> </body> </html>