Re: How do they disable this feature?
by "Debra Sawyers" <dsawyers(at)ptd.net>
|
Date: |
Sun, 26 Dec 1999 21:35:29 -0500 |
To: |
<hwg-graphics(at)hwg.org> |
References: |
jlc jlc2 |
|
todo: View
Thread,
Original
|
|
> I need to find this web site again, because the right click does not work
> in either netscape or in IE. The minute you right-click, a message pops up
> and says this function has been disabled. You have NO right click
> capabilities on this web page.
>
> dana b mackonis
> writer(at)jlc.net
>
This gets pasted in the head, and disables the right click, but it doesn't
keep someone from viewing the source.
<script language="JavaScript">
var message="Sorry, your right click button has been disabled.";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
HWG: hwg-graphics mailing list archives,
maintained by Webmasters @ IWA