In article <d9************************************@mygate.mai lgate.org>,
he********@hotmail.com enlightened us with...
Is it possible to modify a HTML list box properties so that it doesn't
scroll to the letter pressed. I have created a bit of code to allow the
list box to scroll to the the first 5 characters entered. Ie if the
user selects the list box and types 'compu' the listbox will scroll to
'Computer'. My problem is with the default behaviour of the listbox.
After the 'computer' option is selected the listbox moves to a word
begining with 'u' my last entered character. Is there anyway arround
this? My code is executed on the keyup event on the listbox <select
size="5" multiple="true" id="b" onkeyup="DoSelect()">.
I'm sure there is, but unless this is for an intranet application, it's
a Bad Idea to change the default behavior of a component. Usability
studies show that once we actually get people used to things, they
really don't like it when you change the behavior of that thing.
It's kind of like teaching someone to drive, then changing the gas pedal
to the left and the brake to the right. ;)
If you still want to do it, cancel the event according to the browser of
choice. Netscape and IE do it a bit differently.
--
--
~kaeli~
With her marriage, she got a new name and a dress.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace