how do I make a drop down box with hyperlinks

B

Bob Mitchell

Below is a drop down menu that I can not get to work , Can anyone help
Thanks Bob mitchell, (e-mail address removed)

<option value="*">Select a Province</option>
<option value="listing_guides/guides_alberta.htm">Alberta</option>
<option value="listing_guides/guides_britishcolumbia.htm">British
Columbia</option>
<option value="listing_guides/guides_manitoba.htm">Manitoba</option>
<option value="listing_guides/guides_new_brunswick.htm">New Brunswick</option>
<option value="listing_guides/guides_novia_scotia.htm">Novia Scotia</option>
<option value="listing_guides/guides_nwt.htm">N.W.T.</option>
<option value="listing_guides/guides_ontario.htm">Ontario</option>
<option value="listing_guides/guides_quebec.htm">Quebec</option>
<option value="listing_guides/guides_saskatchawan.htm">Saskatchewan</option>
<option value="listing_guides/guides_yukon.htm">Yukon</option>
<option value="listing_guides/guides_newfoundland.htm">New Foundland</option>
</select>
 
D

DavidF

Bob,

It might be that each option value should contain a valid URL, including the
"http://" prefix. However, it looks like this code snippet is incomplete.
You might go back to where you got it and see what else you should be
including. For example try pasting the following code into your insert HTML
code fragment and previewing it:

--------

<script language="JavaScript">
function goToPage(url)
{
if (url != "")
{
window.open(url);
}
}
</script>

<form name="dropdown">
<label>Search <u>E</u>ngines</label>
<select name="list" accesskey="E">
<option selected>Please select one</option>
<option value="http://search.msn.com/">MSN Search</option>
<option value="http://www.google.com/">Google</option>
<option value="http://www.search.com/">Search.com</option>
<option value="http://www.dogpile.com/">Dogpile</option>
</select>
<button onclick="goToPage(document.dropdown.list.options(
document.dropdown.list.selectedIndex).value)">Go</button>
</form>

-----------

DavidF

Bob Mitchell said:
Below is a drop down menu that I can not get to work , Can anyone help
Thanks Bob mitchell, (e-mail address removed)

<option value="*">Select a Province</option>
<option value="listing_guides/guides_alberta.htm">Alberta</option>
<option value="listing_guides/guides_britishcolumbia.htm">British
Columbia</option>
<option value="listing_guides/guides_manitoba.htm">Manitoba</option>
<option value="listing_guides/guides_new_brunswick.htm">New
Brunswick said:
<option value="listing_guides/guides_novia_scotia.htm">Novia
Scotia said:
<option value="listing_guides/guides_nwt.htm">N.W.T.</option>
<option value="listing_guides/guides_ontario.htm">Ontario</option>
<option value="listing_guides/guides_quebec.htm">Quebec</option>
<option
 

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