Freepages-Help-L Archives

Archiver > Freepages-Help > 2005-06 > 1119192190


From: Patricia Geary <>
Subject: Re: [FreeHelp] Handy Java
Date: Sun, 19 Jun 2005 10:43:10 -0400
In-Reply-To: <000201c574d5$1bf69c90$f452a20a@q5u5k5>


At 09:45 AM 6/19/2005 -0400, Michael Hymer wrote:
>Snippet #1: No Right Click
>
>Here's the Code:
>
><.script type="text/javascript">
> function imageClick()
> {
> if (event.button==2) {
> alert('RIGHT CLICK IS NOT ALLOWED HERE! --Your message here--');
> }
> }
>document.onmousedown= imageClick;
></script>


Before you think of adding no right click to your pages, you should read
the following:

http://www.jamesshuggins.com/h/web1/how_do_i_turn_off_right_click.htm

pat

____________
Pat Geary
http://freepages.genealogy.rootsweb.com/~gearyfamily/
http://www.rootsweb.com/~vamscdar/
http://freepages.genealogy.rootsweb.com/~gearyfamily/building-webpages.htm


This thread: