Your Best Hosting
Solution

Keeping it Simple


  Main Menu
     Home Page
     About Us
     Hosting Plans
     Register Domains
     The Good Stuff
     Member Area
     Support Ticket
  Free Extras
     Free Domain Name
     RVSiteBuilder
     WebTraxEditor
     Tutorials
     And Much More
  Important Information
     90 Day Free Trial
     Our Guarantee
     F A Q
  Contact Information
     Contact Us
     Our Forum
  Site Map
     Site Map

Back to Previous Page






No Right Click
What it's all about:

Ever wanted to prevent users from "borrowing" images from your site through right-clicking them and "save image as..." or right-clicking the page and viewing your page source? This script will (attempt to) disable the right click on your page! As explained, however, this script is not fool-proof !!

How to install this script:
TWO STEPS TO INSTALL NO RIGHT CLICK:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document

STEP ONE: Paste this code into the HEAD of your HTML document

<HEAD>

<SCRIPT LANGUAGE="JavaScript1.1">
<!-- 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, you do not have permission to right click."); return false; } return true; }

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</script>
</HEAD>

STEP TWO: Copy this code into the BODY of your HTML document

<BODY>

<center>[ Try right-clicking the image and then the text link below ] <p> <img src="http://javascript.internet.com/img/tjsbutton.gif"><p>
<a href="http://javascript.internet.com">Text Link</a>