Keyboard alpha shortcut for HTML select

  • Thread starter Thread starter JM
  • Start date Start date
J

JM

Hi,

When you use the keyboard inside a dropdown rendered by a <SELECT>
element, you can quickly locate <OPTION> elements with values
beginning with the key you typed. Firefox allows you to quickly type
any amount of keys to further refine your search. If you quickly
typed "dog", for example, your focus would be set to "dogwood" instead
of just the first element that begins with "d". If you try this using
IE, you will bounce from elements starting with "d" to those starting
with "o" to those starting with "g". Is there a way to configure IE
to do this? I assume it's a user agent function and not something
configurable with Javascript.

Grr... it took me 5 minutes to find the genuine IE group. Microsoft
has several that have become bogus from non-use. They should scrap
those.

Thanks,

JM
 
JM said:
Hi,

When you use the keyboard inside a dropdown rendered by a <SELECT>
element, you can quickly locate <OPTION> elements with values
beginning with the key you typed. Firefox allows you to quickly type
any amount of keys to further refine your search. If you quickly
typed "dog", for example, your focus would be set to "dogwood" instead
of just the first element that begins with "d". If you try this using
IE, you will bounce from elements starting with "d" to those starting
with "o" to those starting with "g". Is there a way to configure IE
to do this? I assume it's a user agent function and not something
configurable with Javascript.

Grr... it took me 5 minutes to find the genuine IE group. Microsoft
has several that have become bogus from non-use. They should scrap
those.

Thanks,


This works well:

http://www.oreillynet.com/pub/a/javascript/2003/09/03/dannygoodman.html
 
JM said:
Hi,

When you use the keyboard inside a dropdown rendered by a <SELECT>
element, you can quickly locate <OPTION> elements with values
beginning with the key you typed. Firefox allows you to quickly type
any amount of keys to further refine your search. If you quickly
typed "dog", for example, your focus would be set to "dogwood" instead
of just the first element that begins with "d". If you try this using
IE, you will bounce from elements starting with "d" to those starting
with "o" to those starting with "g". Is there a way to configure IE
to do this? I assume it's a user agent function and not something
configurable with Javascript.

Grr... it took me 5 minutes to find the genuine IE group. Microsoft
has several that have become bogus from non-use. They should scrap
those.

Thanks,

JM

Microsoft did discontinue those newsgroups. It is not their fault that
usenet still carries them. If you use a newsreader like Outlook Express to
access the Microsoft server you sill see that they are not there. You will
also be able to download messages faster,

In OE go to Tools | Accounts | Add (or New) | News.
Set up an account for this news server:

msnews.microsoft.com

The server is free and does not require you to logon. This news server
carries over 2200 newsgroups related to Microsoft products and keeps
messages at least 30 days.

--
Frank Saunders, MS-MVP, IE/OE
Please respond in Newsgroup. Do not send email
http://www.fjsmjs.com
Protect your PC
http://www.microsoft.com/security/protect/
 
Back
Top