drop down options adding href

S

SarahE

Can someone tell me if it is possible to add an href to an <option> tag for
the drop down options?
I do not want to reference a URL address and it seems that is the only
option you have while using the navagate option.
<option
value="/intranet/public/is/ad/system_standards.htm#System%20Standards">
SYSTEM STANDARDS </option>
This is what I am trying to get to work but it still will not reference this
page within my working folder as it should. Thanks.
 
K

Kathleen Anderson [MVP - FrontPage]

Yes, it's possible. Make sure you are referencing the page correctly,
relative to your current location.

This: <option value="testjump.htm">Go to test page</option> will let you go
to another page in the same folder as your current page.



You should also remove any spaces and special characters from your
filenames.

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
 
P

p c

Below is code that will do the the dropdown for jumpin to a new page.

1. Copy the code in HTML view to where you want to appear.

2. Revise each option tag to correspond to the relative URL (without
HREF) and the name of the page. Add more option tags as needed. The tow
first option tags take you to the index page (index.html) in the current
folder. Chane or delete if necessary

3. Find a "go.gif" image and place in the same folder. It is your
button. If you want to use a different image or want to put it in
different folder, change the src="go.gif" in the image tag to correspond
to that.

4. Save. You are aal done


<!-- #begin of Dropdown-->
<script type="text/javascript" language="JavaScript">
<!--
function navHandler(list){
window.location.href = list
.options[list.selectedIndex].value; }
// -->
</script>

<form name="MainForm">
<select size=1 name="SeeAlsoSelect" onChange=navHandler(this); >

<option value="index.html">Go to.... </option>
<option value="index.html">Contents </option>

<option value="PROC001.html">Procedure 1 </option>
<option value="PROC002.html">Procedure 2 </option>

</select>

<a href="javascript:navHandler(document.MainForm.SeeAlsoSelect)"
border=0><img alt="GO" border="0" height=22 width="20" value="Go"
src="go.gif"></a>

</form>
<!-- #End of Dropdown-->

...PC
 

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

Top