Jump to content

drop down menu


bphanisarma

Recommended Posts

hiI took the following code from w3schools java scripts examplesthis works finemy problem is when the list is displayed there are 3 names that starts with letter mwhen i will press m then the word with m should be high lighted when i press m and then i then the word with Mi should be displayednot the one with ii want to do something like MS word..there is menu in the top which selects style of words like times new roman ,tahoma etc....here in that when we press t, it displays the first word with letter t in menu..then if we press ti, it goes directly to the times.....is there any way i can do that.....is anybody have any idea abt itthanks byecode:<html><head><script type="text/javascript">function go() {window.location=document.getElementById("menu").value}</script></head><body><form><select id="menu" onchange="go()"><option>--Select a page--</option><option value="http://www.w3schools.com">W3Schools</option><option value="http://www.microsoft.com">Microsoft</option><option value="http://www.altavista.com">macrosoft</option><optionvalue="http://www.altavista.com">mpcrosoft</option></select></form></body></html>

Link to comment
Share on other sites

Sorry phani, that's probably just a problem with your browser. There's no real way you can fix that, unless you want to use complex key catching scripting, and there's not really a point to that. :S

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...