<script language="JavaScript">
function click() {
if (event.button==2) {
alert('Hey, leave my images alone!');
}
}
document.onmousedown=click
// -->
</script>
this coding works fine for my index.html page where all my thumbnail pictures are.
When a user clicks on one of these thumbnail pictures, the picture loads the large version. But when the large picture is on screen, the user can right click on it.
How can I prevent the user from right clicking on the large picture (because thats the one I need protecting really!)
ie.. how do i disable right clicking on this picure?
http://www.iprice.f2s.com/photos/900Dscf0156.jpg
function click() {
if (event.button==2) {
alert('Hey, leave my images alone!');
}
}
document.onmousedown=click
// -->
</script>
this coding works fine for my index.html page where all my thumbnail pictures are.
When a user clicks on one of these thumbnail pictures, the picture loads the large version. But when the large picture is on screen, the user can right click on it.
How can I prevent the user from right clicking on the large picture (because thats the one I need protecting really!)
ie.. how do i disable right clicking on this picure?
http://www.iprice.f2s.com/photos/900Dscf0156.jpg