如何让页面忽略mousedown事件

如何让页面忽略mousedown事件

本文介绍了如何让页面忽略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

推荐答案






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

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


作者:(Paolo Mancini)

主题:取消点击事件一页

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

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


迈克


-

Michael Winter
盖子(将.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)





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

表格提交。


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

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

涉及禁用点击主文件。

-

-

~kaeli~

按任意键......不,不,不,不是那个!!!!!!





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事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 09:52