|
 |
asp_web_howto thread: Right Click
Message #1 by "H. Carter Harris" <carter@t...> on Tue, 26 Feb 2002 09:47:31 -0600
|
|
Does anyone know of a way to disable the right-click fucntion on a in IE and
NetScape.
I'm displaying a window sans the tool bar and the menu but I would like to
disable the right-click too.
Message #2 by Sean Eddington <eddingtons@e...> on Tue, 26 Feb 2002 10:45:14 -0500
|
|
There are javascripts that will do this..and you vcan combine tat with a
javascript that redirects if they do not have javascripts enabled.
-----Original Message-----
From: H. Carter Harris [mailto:carter@t...]
Sent: Tuesday, February 26, 2002 10:48 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Right Click
Does anyone know of a way to disable the right-click fucntion on a in IE and
NetScape.
I'm displaying a window sans the tool bar and the menu but I would like to
disable the right-click too.
$subst('Email.Unsub').
Message #3 by Joe Ingle <Joe@k...> on Tue, 26 Feb 2002 03:44:15 -0000
|
|
var DisableRightClick =3D "=A9 Your Web Site";
function ProtectIt(keyp){
if (navigator.appName =3D=3D "Netscape" && keyp.which =3D=3D 3) {
alert(DisableRightClick);
return false; }
if (navigator.appVersion.indexOf("MSIE") !=3D -1 && event.button =3D=3D
2) {
alert(DisableRightClick); return false; }}document.onmousedown =3D
ProtectIt
if (parent.location.href =3D=3D self.location.href){
window.location.href =3D 'http://www.domain.co.uk/';
alert(DisableRightClick)}
I used to use this, but as a user I have found it a little irritating,
so
have have stopped.
Joe
PS Don't implement until you've finished developing your ap, you'll be
pulling your hair out when you trying to debug!!
-----Original Message-----
From: H. Carter Harris [mailto:carter@t...]
Sent: Tuesday, February 26, 2002 03:48
To: ASP Web HowTo
Subject: [asp_web_howto] Right Click
Does anyone know of a way to disable the right-click fucntion on a in
IE and
NetScape.
I'm displaying a window sans the tool bar and the menu but I would like
to
disable the right-click too.
$subst('Email.Unsub').
Message #4 by "H. Carter Harris" <carter@t...> on Tue, 26 Feb 2002 10:32:33 -0600
|
|
Thanks, Sean and Joe ... I tried them and they work quite nicely.
-----Original Message-----
From: Sean Eddington [mailto:eddingtons@e...]
Sent: Tuesday, February 26, 2002 9:45 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Right Click
There are javascripts that will do this..and you vcan combine tat with a
javascript that redirects if they do not have javascripts enabled.
-----Original Message-----
From: H. Carter Harris [mailto:carter@t...]
Sent: Tuesday, February 26, 2002 10:48 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Right Click
Does anyone know of a way to disable the right-click fucntion on a in IE and
NetScape.
I'm displaying a window sans the tool bar and the menu but I would like to
disable the right-click too.
$subst('Email.Unsub').
$subst('Email.Unsub').
Message #5 by "e n z o" <enzaux@g...> on Wed, 27 Feb 2002 00:00:20 +0800
|
|
there's a lot on the web, try searching on www.javascripts.com . This is a
very common code.
Enzo :)
----- Original Message -----
From: "H. Carter Harris" <carter@t...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Tuesday, February 26, 2002 11:47 PM
Subject: [asp_web_howto] Right Click
> Does anyone know of a way to disable the right-click fucntion on a in IE
and
> NetScape.
>
> I'm displaying a window sans the tool bar and the menu but I would like to
> disable the right-click too.
>
>
$subst('Email.Unsub').
>
|
|
 |