Pulldown menu help
Hi
Can someone show me how to create a pull down menu where you can Select say Yahoo! and it will bring you to Yahoo.com ?
Thanks
------------------
Due to precipitation, for a few weeks K2 is bigger than Mount Everest.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Vincent Puglia posted this at 00:25 — 13th February 2000.
They have: 634 posts
Joined: Dec 1999
Hi Rob,
Essentially you load the option's value with the url and call a function with onChange event handler that executes a location.href.
Sort of:
function doSel(selObj)
{
for (i=0; i=selObj.length; i++)
if (selObj.options[i].selected)
location.href = selObj.options[i].value
}
For complete explanation and more you can check out the "Select & Go Menus" script at my site.
Vinny GrassBlade: cut&paste javascript
Where the world once stood
the blades of grass cut me still
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.