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.
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[t his.select edIndex].v alue,'_sel f');" >
<option selected >Don't Pick me</option>
<option value='http://classylinks.ca' >ClassyLinks</option>
<option value='http://classythemes.com'>ClassyThemes</opti on>
<option value='http://mysite.classylinks.ca'>Cool ASP stuff</option>
</select>
What you want is something like this???
<form name="JumpMenu" >
<select size="2" name="Jump1" onchange="window.open(this
<option selected >Don't Pick me</option>
<option value='http://classylinks.ca' >ClassyLinks</option>
<option value='http://classythemes.com'>ClassyThemes</opti
<option value='http://mysite.classylinks.ca'>Cool ASP stuff</option>
</select>
ASKER
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works good. Thanks Classy.
Morbius
Morbius
NP...glad to help.
Thanks for the points!
cu next time.
Thanks for the points!
cu next time.
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??