Pulldown menu help

They have: 850 posts

Joined: Jul 1999

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.

Vincent Puglia's picture

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.