By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,649 Members | 1,808 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,649 IT Pros & Developers. It's quick & easy.

disable mouse scroll wheel > prevent problem with dropdown

P: n/a
Hi,

If on an asp.net page the user has just selected a value in a dropdownlist
and scrolls with the wheel of his mouse, the selected value of the
dropdownlist will change.

How could I avoid this.

So how could I disable the mouse scrolling that dropdownlist.
Or how could I disable the mouse-scroll on those pages.
Or...
all other ideas are welcome.

Thx for help,
Nic
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Forget azbout disabling the behavior of the mouse. The browser just doesn't
have that kind of clout. If you're really concerned (this is the default
behavior of a mouse), you can use JavaScript to remove the focus from the
select object (dropdown list). The mouse scrolls the list because the select
object has the focus, and that is how the select object is designed to
behave when the mouse scrolls.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"nicholas" <mu********@hotmail.com> wrote in message
news:uY**************@TK2MSFTNGP15.phx.gbl...
Hi,

If on an asp.net page the user has just selected a value in a dropdownlist
and scrolls with the wheel of his mouse, the selected value of the
dropdownlist will change.

How could I avoid this.

So how could I disable the mouse scrolling that dropdownlist.
Or how could I disable the mouse-scroll on those pages.
Or...
all other ideas are welcome.

Thx for help,
Nic

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.