The code used to make this work is shown below (Cut and Paste between the HEAD tags of your web page):
<script LANGUAGE="JavaScript">
<!--
function click() {
if (event.button==2) {
alert('You Can NOT use the Right Mouse Button on this Page, Sorry!');
}
}
document.onmousedown=click
// -->
</script>
(If you change the 'event.button' value to 1 you can stop the left mouse button working!):
Stop people using the Right Mouse button from viewing your source.
(Does not work for Mozilla 1.2b)
Ease of use
Size
1.72KB
Created by
James Bernley
Date
03 January 2002
View Sample Code Actual Size
PLEASE CLICK BELOW
Download Sample Code Zip
Click the "View Actual Size" button below to open a new window containing only the sample code above.
HELP KEEP THIS SITE FREE TO USE !
Please click on our sponsors advert below if you download or use anything from this page.
Thankyou for your help.
Click on the button below to download the complete sample code shown above
N.B. A copy of WinZip can be download from here: www.cnet.com
Comments
Increase the traffic to your new site: Generate More Hits Please send in any variations of the design you create, even if you only change the colour