Hyperlink from Drop Down

S

Sam And

I'd like to create a form with a drop down list of links that would point
the user to specific pages on my web. Can the Drop down box under Insert -
Forms be used for this?
 
S

Steve Easton

Yes and no. it needs to be a drop down select box and use some javascript.

Here's an example:

<form>
<p align="center"><b>Select a Site </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>

add options as needed and edit the values and text displayed to suit your needs.


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

Sam And

Thanks for the infor it works great. How would I get this to work with
Netscape as well?


Steve Easton said:
Yes and no. it needs to be a drop down select box and use some javascript.

Here's an example:

<form>
<p align="center"><b>Select a Site </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>

add options as needed and edit the values and text displayed to suit your
needs.


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

Sam And said:
I'd like to create a form with a drop down list of links that would point
the user to specific pages on my web. Can the Drop down box under
Insert -
Forms be used for this?
 
G

Guest

I used this. It works great! Thank you.
How do I make the drop down box revert back to Select One after a user makes
a choice?
How do I make the page that the user clicks open in a separate window?
Thanks again,
Christa

Steve Easton said:
Yes and no. it needs to be a drop down select box and use some javascript.

Here's an example:

<form>
<p align="center"><b>Select a Site </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>

add options as needed and edit the values and text displayed to suit your needs.


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

Sam And said:
I'd like to create a form with a drop down list of links that would point
the user to specific pages on my web. Can the Drop down box under Insert -
Forms be used for this?
 
S

Steve Easton

To make the drop down go back to "Select one" would require reloading the page.

As for opening in a separate window, it should be automatic. It does on my machine.

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

Christa said:
I used this. It works great! Thank you.
How do I make the drop down box revert back to Select One after a user makes
a choice?
How do I make the page that the user clicks open in a separate window?
Thanks again,
Christa

Steve Easton said:
Yes and no. it needs to be a drop down select box and use some javascript.

Here's an example:

<form>
<p align="center"><b>Select a Site </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>

add options as needed and edit the values and text displayed to suit your needs.


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

Sam And said:
I'd like to create a form with a drop down list of links that would point
the user to specific pages on my web. Can the Drop down box under Insert -
Forms be used for this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top