<emmajoh (AT) gmail (DOT) com> wrote
[snip]
Quote:
I just saw you had a similar problem a while ago (it only
worked whith an alert() in the function).
How did you manage to solve your problem? |
I presume your referring to my post of 08/24/2004
with a Subject of "Disable right-click without alert?".
(Randy Webb's responses were very informative.)
If you're referring to this code:
<script type="text/javascript">
function click() {
if (event.button == 2) alert("right-click disabled.");
}
document.onmousedown = click;
</script>
it does not disable right-click.
Try it but continue to hold the right mouse button
down and press Enter to acknowledge the alert().
The context menu will then be displayed.