阻止鼠标右键单击.... [英] Blocking mouse right click....

查看:93
本文介绍了阻止鼠标右键单击....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net应用程序中,我想阻止鼠标右键单击我的网页。

这意味着我可能只显示一些消息而不是弹出菜单

消息。

热门吗?

谢谢,

Veer

In my asp.net application I want to block mouse right click on my web pages.
That means instead of popup menu I may just display some message or no
message at all.
Hot to do that?
Thanks,
Veer

推荐答案

>热门这么做了吗?


不这样做。


毫无疑问,你想要保护页面中的某些HTML或图像,对吧?

算了吧。任何值得他的盐的网络开发者都知道浏览器通过

定义下载文件,图像等的副本。一旦用户看到他们的b $ b $,他们的机器上已经存在一份副本。它可以从Temporary Internet Files文件夹中轻松打开,也可以用其他六种方式查看。只有业余爱好者才能阻止右键单击。你不是一个业余爱好者,对吗?


-

HTH,

Kevin Spencer

..Net开发人员

微软MVP

大件东西组成

很多小东西事情。


" Veeresh" < Ve的****** @ hotmail.com>在消息中写道

新闻:eT ************** @ TK2MSFTNGP09.phx.gbl ...
> Hot to do that?

Not to do that.

No doubt you want to protect some HTML or images in your pages, right?
Forget it. Any web developer worth his salt know that a browser by
definition DOWNLOADS COPIES of documents, images, etc. Once the user sees
them, a copy already exists on their machine. It can easily be opened in
NotePad from the Temporary Internet Files folder, or viewed in any of a
half-dozen other ways. Only amateurs prevent right-clicking. And you''re not
an amateur, right?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Veeresh" <Ve******@hotmail.com> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
在我的asp.net中应用程序我想阻止鼠标右键单击我的网页
页面。这意味着我可能只是显示一些消息或没有消息,而不是弹出菜单。
热门这样做?
谢谢,
Veer
In my asp.net application I want to block mouse right click on my web pages. That means instead of popup menu I may just display some message or no
message at all.
Hot to do that?
Thanks,
Veer



没有。多数民众赞成不正确。我试图避免用户在

弹出菜单中访问Back菜单。

Veer


" Kevin Spencer" < KS ****** @ takempis.com>在消息中写道

新闻:OG ************** @ tk2msftngp13.phx.gbl ...
No. Thats not correct. I am trying to avoid user accessing Back menu in the
popup menu.
Veer

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:OG**************@tk2msftngp13.phx.gbl...
热门这样做?
不要这样做。

毫无疑问你想要保护页面中的一些HTML或图像,对吧?
忘了它。任何值得他的盐的网络开发者都知道浏览器通过定义下载文档,图像等的副本。一旦用户看到他们,他们的机器上已经存在一个副本。它可以从Temporary Internet Files文件夹中轻松打开到NotePad中,或者以其他六种方式查看。只有业余爱好者才能阻止右键单击。你是
Hot to do that?
Not to do that.

No doubt you want to protect some HTML or images in your pages, right?
Forget it. Any web developer worth his salt know that a browser by
definition DOWNLOADS COPIES of documents, images, etc. Once the user sees
them, a copy already exists on their machine. It can easily be opened in
NotePad from the Temporary Internet Files folder, or viewed in any of a
half-dozen other ways. Only amateurs prevent right-clicking. And you''re



不是业余爱好者吧?

-
HTH,
Kevin Spencer
。网络开发者
微软MVP
很多东西都是由很多小东西组成的。

Veeresh < Ve的****** @ hotmail.com>在消息中写道
新闻:eT ************** @ TK2MSFTNGP09.phx.gbl ...


not an amateur, right?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Veeresh" <Ve******@hotmail.com> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...

在我的asp.net应用程序中我想要阻止鼠标右键单击我的网页
In my asp.net application I want to block mouse right click on my web


页面。

这意味着我可能只显示一些消息或没有消息,而不是弹出菜单。
热门吗?
谢谢,
Veer
That means instead of popup menu I may just display some message or no
message at all.
Hot to do that?
Thanks,
Veer




如果他们使用Backspace按钮?


我认为Kevin的观点是试图改变客户端的b
浏览器界面的工作方式几乎总是一个坏主意。如果你依靠

禁用浏览器功能让你的应用程序工作,有人

总能找到解决办法。


-

Scott
http://www.OdeToCode.com


On Thu,2004年7月8日10:21:32 -0700,Veeresh < Ve ****** @ hotmail.com>

写道:
What if they use the Backspace button?

I think Kevin''s point is that trying to change the way the client''s
browser interface works is almost always a bad idea. If you count on
disabling browser functionality for your application to work, someone
will always find a way around it.

--
Scott
http://www.OdeToCode.com

On Thu, 8 Jul 2004 10:21:32 -0700, "Veeresh" <Ve******@hotmail.com>
wrote:
没有。多数民众赞成不正确。我试图避免用户在
弹出菜单中访问Back菜单。
Veer

Kevin Spencer < KS ****** @ takempis.com>在消息中写道
新闻:OG ************** @ tk2msftngp13.phx.gbl ...
No. Thats not correct. I am trying to avoid user accessing Back menu in the
popup menu.
Veer

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:OG**************@tk2msftngp13.phx.gbl...
> ;热门呢?



不要这样做。

毫无疑问你想要保护页面中的一些HTML或图像,对吧?
算了吧。任何值得他的盐的网络开发者都知道浏览器通过定义下载文档,图像等的副本。一旦用户看到他们,他们的机器上已经存在一个副本。它可以从Temporary Internet Files文件夹中轻松打开到NotePad中,或者以其他六种方式查看。只有业余爱好者才能阻止右键单击。而你



Not to do that.

No doubt you want to protect some HTML or images in your pages, right?
Forget it. Any web developer worth his salt know that a browser by
definition DOWNLOADS COPIES of documents, images, etc. Once the user sees
them, a copy already exists on their machine. It can easily be opened in
NotePad from the Temporary Internet Files folder, or viewed in any of a
half-dozen other ways. Only amateurs prevent right-clicking. And you''re


不是

一个业余的,对吧?

-
HTH,
Kevin Spencer
.Net开发人员
微软MVP
很多小东西组成了很多东西。

Veeresh < Ve的****** @ hotmail.com>在消息中写道
新闻:eT ************** @ TK2MSFTNGP09.phx.gbl ...
an amateur, right?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Veeresh" <Ve******@hotmail.com> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
>在我的asp.net应用程序中,我想阻止鼠标右键单击我的网页
> In my asp.net application I want to block mouse right click on my web


页面。

>这意味着我可能只是显示一些消息而不是弹出菜单而不是
>消息。
>热门吗?
>谢谢,
> Veer
>
>
> That means instead of popup menu I may just display some message or no
> message at all.
> Hot to do that?
> Thanks,
> Veer
>
>







这篇关于阻止鼠标右键单击....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆