How do I use drop down menu to change pages

J

Justin

I am trying to use a drop down style menu to list all the pages on my site..
Then once one is selected from the menu the button would say "Go" and you
would click it to go to that page.. Can this be done! When I try to do this
I get the button text on and all my pages listed but then it wants to submit
it into some kind of form.. I just want it to follow a link!
 
J

Jens Peter Karlsen[FP MVP]

Look into Behaviors. (Format | Behaviors).

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
A

Andrew Murray

It is using the html form elements......if you're using the "jump menu"
behaviour in FP2003, then you should be fine - clicking the "go" button just
takes the user to the page they selected, it is not sending anything
anywhere.
 
S

Steve Easton

Like this. Change the urls to reflect your pages file names.
Simply add more option lines to add more pages.

<p align="center"><b>Select a Page </b>
<select id="setit" style="color: #0000FF" size="1" name="test">
<option value="">Select one</option>
<option value="http://www.altavista.com">AltaVista</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">Google</option></select>
<input type="button" value="Go"
onclick="window.open(setit.options[setit.selectedIndex].value)">
</p></form>

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Top