How can I hyperlink each option in a scroll down button ?

  • Thread starter Thread starter Guest
  • Start date Start date
You shouldn't use onchange in a drop down select, you should use a Go button.

With onchange, people who can't use a mouse will never be able to get past the first item
in the list.

--
Steve
(e-mail address removed)
www.crownlogistic.com

Dan L said:
If by "scroll down button" you mean "drop down arrow", then

<form>
<select onChange="if(options[selectedIndex].value)
window.location.href=(options[selectedIndex].value)">
<option>Select...
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.lycos.com">Lycos</option>
</select>
</form>

Randy said:
--
Thank you in advance for your time and help.

Best regards,
Randy
 
oops,
You shouldn't use onchange in a drop down select, you should use a Go button.

With onchange, people who can't use a mouse will never be able to get past the first item
in the list.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer

Dan L said:
If by "scroll down button" you mean "drop down arrow", then

<form>
<select onChange="if(options[selectedIndex].value)
window.location.href=(options[selectedIndex].value)">
<option>Select...
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.lycos.com">Lycos</option>
</select>
</form>

Randy said:
--
Thank you in advance for your time and help.

Best regards,
Randy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top