Link to home
Start Free TrialLog in
Avatar of SirMorbius
SirMorbius

asked on

Creating a drop down box that automatically leads to a different page

I am trying to create a drop down menu that when the option is selected it will automatically send the browser to that page.  I am using FP2000, and would rather use HTML code then anything else.
Avatar of ClassyLinks
ClassyLinks
Flag of Canada image

Hello Sir.

If you need two boxes (combo boxes) example code can be found here:  http://javascript.internet.com/navigation/combined-menu.html

For just a single box, you can modify the code slightly so that it is only looking for one input.

Is that what you were looking for, or something a little different??
Avatar of SirMorbius
SirMorbius

ASKER

That is most of it, but I do not want them to have to click the "select" button.  I want them to pick the option from the drop down, and then it would automoatically move them to that page.
Gotcha!

What you want is something like this???

<form name="JumpMenu" >
<select size="2" name="Jump1" onchange="window.open(this.options[this.selectedIndex].value,'_self');" >
<option selected >Don't Pick me</option>
<option value='http://classylinks.ca' >ClassyLinks</option>
<option value='http://classythemes.com'>ClassyThemes</option>
<option value='http://mysite.classylinks.ca'>Cool ASP stuff</option>
</select>
Classy,
  When I try to import that code into my existing page, I get a single box, not a drop down.  If I click on one of the options, it does open a new window, just can't get it to go to the page I want it to.  Also, I need a drop down, not just a box with the options in it.  thanks for your help.
ASKER CERTIFIED SOLUTION
Avatar of ClassyLinks
ClassyLinks
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Works good.  Thanks Classy.
Morbius
NP...glad to help.

Thanks for the points!

cu next time.