Disable right click
This script won't let your visitors click the right button of
their mouse.
Put this codes between the <head> </head> tags:
<script type="text/javascript">
<!-- Original: Martin Webb (martin@irt.org) -->
<!-- // Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Sorry, no right click");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
</script>
Put this code after the </html> tag:
<script type="text/javascript">
<!-- // Begin
for (var i=0; i<document.images.length; i++)
document.images[i].onmousedown=right;
for (var i=0; i<document.links.length; i++)
document.links[i].onmousedown=right;
// End -->
</script>