There have been multiple ways to stop your user/s from right clicking on your site, but many of them now fail due to the way firefox’s contextual menu loads.

Below is an example of how to do it:
[code lang=”javascript”]
function _c(e) {if (document.all) {if (event.button==2||event.button==3) {return false;}} else {if (e.button==2||e.button==3) {e.preventDefault();e.stopPropagation();return false;}}if (e.which) {}}if (document.all){document.onmousedown=_c;}else{document.onclick=_c;document.ondblclick=_c;}

..and here is the full working example in a webpage:
[code lang=”html”]



Leave a Reply

Your email address will not be published.

%d bloggers like this: