Hi,
Am trying to protect images from being downloaded – I used the following script and although it does give the JS Alert, it still lets you download the page – what am I missing? Thanks!
[COLOR=DarkSlateBlue]
<!– TWO STEPS TO INSTALL PROTECT IMAGES:
1. Copy the coding into the HEAD of your HTML document2. Add the onLoad event handler into the BODY tag –>
<!– STEP ONE: Paste this code into the HEAD of your HTML document –>
<HEAD>
<SCRIPT LANGUAGE=”JavaScript”>
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com
<!– Begin
function protect(e) {
alert(“Sorry, you don’t have permission to right-click.”);
return false;
}
function trap() {
if(document.images)
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown = protect;
}
// End –>
</SCRIPT>
<BODY OnLoad=”trap()”> ….
[/COLOR]
Thanks