This is another example of how to stop your visitors from right clicking on your web page. However, instead of giving them an error, this script replaces the right-click action with a message wherever the visitor clicks. Simply right-click anywhere on this page to see the example.