Re: document-wide disable of mousedown
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: document-wide disable of mousedown

From: Evertjan. <exjxw.hannivoort@interxnl.net>
Date: Tue Jan 31 2006 - 17:12:24 CET

PJ6 wrote on 31 jan 2006 in comp.lang.javascript:

> "Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
> news:Xns975CA8A3B8928eejj99@194.109.133.242...
>>> What's the best way to disable OnMouseDown document-wide?
>>>
>>
>> Polyurethane foam?
>>
>> It is your page, so, fix your clientside script.
>
> This is the very reason I hate JavaScript. In order to derive a global
> behavior I have to change every last godforsaken element that uses
> JavaScript. I acknoweldge that some ways are better than others, but
> still.
>
> Assuming I have quite a few controls with their own scripts (ASP.NET),
> I would have you suggest to me which approach you recommend.
>

No, you would not, because this is a javascript NG and not a .net one.

Javascript cannot be blamed for what other technologies do with it.

Please instead hate .net technology. They have their own NGs.

Furthermore, onmousedown is not Javascript,
in IE vbscript works just as well:

==============
<script type='text/vbscript'></script>
<button onmousedown = "for i=0 to 10:confirm(i):next">
count</button>
==============

Would this vbs do any better?

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Received on Tue Feb 7 21:28:54 2006