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

S

Steve Easton

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
[email protected]
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
 
S

Steve Easton

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
 
Top