Re: How to stop scroll wheel from selecting different menu options
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: How to stop scroll wheel from selecting different menu options

From: Other <this@that.so>
Date: Mon Aug 15 2005 - 20:07:28 CEST

<amirkarger@gmail.com> wrote
> However, in IE, after it goes to the new
> location, if I turn the scroll wheel before clicking on anything, the
> scroll wheel selects different options from the <select>, which makes
> the browser jump to a totally different tool (section of the page). In
> Firefox, it (correctly) scrolls up and down the text at the tool I had
> originally selected.
>
> I tried putting a document.focus() or a selection.blur() into the go
> function, but they didn't seem to help.

document.focus() is bogus. Try window.focus() instead. Or indeed
selection.blur(), if "selection" is a variable referencing the <select>
element. If it is, I 'd give it a less confusing name, as the term selection
has meaning already in some browsers.

hth
ivo
http://4umi.com/
Received on Mon Oct 24 02:14:08 2005