如何让页面忽略mousedown事件? [英] How can I make the page ignore the mousedown event?

查看:64
本文介绍了如何让页面忽略mousedown事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望页面完全忽略所有鼠标点击。我可以在onmouseclick事件中创建

并返回false,但这只会禁用

某些类型的事情。例如,我仍然可以在文本框中单击

,然后在下拉列表中键入内容或更改选择。我在$ onmousedown事件中尝试返回false,但是那并没有做出

技巧。我宁愿不必禁用页面上的所有控件。

任何想法?

提前致谢,

John

I want the page to completely ignore all mouse clicks. I can create
the onmouseclick event and return false, but that only disables
certain types of things. I can still, for example, click in a text box
and then type something or change the selection in a dropdown list. I
tried returning false in the onmousedown event, but that didn''t do the
trick. I''d rather not have to disabled all the controls on the page.
Any ideas?
Thanks in advance,
John

推荐答案

我对这个问题没有一个现成的答案,但我很好奇你为什么要b $ b想要做这样的事情?

" john" <乔******** @ yahoo.com>在消息中写道

news:29 ************************** @ posting.google.c om ...
I don''t have a ready answer for the question, but I am curious why you''d
want to do such a thing?
"john" <jo********@yahoo.com> wrote in message
news:29**************************@posting.google.c om...
我希望页面完全忽略所有鼠标点击。我可以创建onmouseclick事件并返回false,但这只会禁用某些类型的事情。例如,我仍然可以单击文本框
然后键入内容或更改下拉列表中的选择。我试图在onmousedown事件中返回false,但是那并没有做到。
技巧。我宁愿不必禁用页面上的所有控件。
任何想法?
提前致谢,
John
I want the page to completely ignore all mouse clicks. I can create
the onmouseclick event and return false, but that only disables
certain types of things. I can still, for example, click in a text box
and then type something or change the selection in a dropdown list. I
tried returning false in the onmousedown event, but that didn''t do the
trick. I''d rather not have to disabled all the controls on the page.
Any ideas?
Thanks in advance,
John



2004年4月19日11:24:33 -0700,john< jo ******** @ yahoo.com>写道:
On 19 Apr 2004 11:24:33 -0700, john <jo********@yahoo.com> wrote:
我希望页面完全忽略所有鼠标点击。我可以创建onmouseclick事件并返回false,但这只会禁用某些类型的事情。例如,我仍然可以单击文本框
然后键入内容或更改下拉列表中的选择。我试图在onmousedown事件中返回false,但是那并没有做到。
技巧。我宁愿不必禁用页面上的所有控件。
任何想法?
I want the page to completely ignore all mouse clicks. I can create
the onmouseclick event and return false, but that only disables
certain types of things. I can still, for example, click in a text box
and then type something or change the selection in a dropdown list. I
tried returning false in the onmousedown event, but that didn''t do the
trick. I''d rather not have to disabled all the controls on the page.
Any ideas?




阅读帖子,取消点击事件a页面" [原文如此],Paolo发布

Mancini今天早些时候。我对这个问题的回答是一样的。


作者: pa ****** @ yahoo.it (Paolo Mancini)

主题:取消点击事件一页

日期:2004年4月19日09:36:50 -0700

消息ID:< 46 ************************** @ posting.google.com>


迈克


-

Michael Winter
M。****** @ blueyonder.co.inva 盖子(将.invalid替换为.uk以回复)



Read the thread, "Cancel click event an a page" [sic], posted by Paolo
Mancini earlier today. My response to that question is the same.

Author: pa******@yahoo.it (Paolo Mancini)
Subject: Cancel click event an a page
Date: 19 Apr 2004 09:36:50 -0700
Msg-ID: <46**************************@posting.google.com >

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)


文章< 29 ************************** @ posting.google.com> ,
jo********@yahoo.com 启发我们......
In article <29**************************@posting.google.com >,
jo********@yahoo.com enlightened us with...
我希望页面完全忽略所有鼠标点击。


坏主意(tm)。我用我的鼠标进行页面导航。许多残疾人也会这样做。您忽略所有点击,您不允许鼠标导航。不好。

我可以创建onmouseclick事件并返回false,但这只会禁用某些类型的事情。例如,我仍然可以单击文本框
然后键入内容或更改下拉列表中的选择。我试图在onmousedown事件中返回false,但是那并没有做到。
技巧。我宁愿不必禁用页面上的所有控件。
I want the page to completely ignore all mouse clicks.
Bad Idea (tm). I use my mouse for page navigation. Many disabled people
do, too. You ignore all clicks, you disallow mouse navigation. Not good.
I can create
the onmouseclick event and return false, but that only disables
certain types of things. I can still, for example, click in a text box
and then type something or change the selection in a dropdown list. I
tried returning false in the onmousedown event, but that didn''t do the
trick. I''d rather not have to disabled all the controls on the page.




为什么他们都需要禁用?如果是这样,只是不允许

表格提交。


如果有些人需要禁用,但你想要他们提交后,有几个

解决方案,具体取决于您的需求。他们都没有

涉及禁用点击主文件。

-

-

~kaeli~

按任意键......不,不,不,不是那个!!!!!!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



Why would they ALL need disabled? If that''s the case, just don''t allow
form submittal.

If a few need "disabled", but you want them submitted, there''s several
solutions to that, depending on what your needs really are. None of them
involve disabling clicking on the main document.
--
--
~kaeli~
Press any key...NO, NO, NO, NOT THAT ONE!!!!!!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


这篇关于如何让页面忽略mousedown事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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