No Right Clicking HTML

Add the following HTML to your website to stop people from right clicking on your website. This will only people from right clicking to save or copy information on your website; there are other ways to copy and save information from your website though.
You can change the alert message from ‘Sorry no right clicking’ to whatever you want. Just make sure that you don’t change the formating of the parentheses and single quotes around the alert message.
function noRightClick() {
if (event.button==2) {
alert(‘Sorry no right clicking’)

You might also like More from author

Leave A Reply

Your email address will not be published.