same issue with drop downs

M

michael

I cannot get my dropdowns to take me to the URL that is
specified under value. NEED HELP>
 
S

Steve Easton

Try this script, change the urls and
add options as needed

<script TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</script>


<form METHOD="POST" onSubmit="return dropdown(this.gourl)">
<p><select NAME="gourl" size="1">
<option VALUE>Choose a Destination... </option>
<option VALUE="http://www.yahoo.com"> Yahoo </option>
<option VALUE="http://www.google.com"> Google </option>
<option VALUE="http://www.altavista.com"> AltaVista </option>
</select> <input TYPE="submit" VALUE="Go"
style="background-color: rgb(0,128,0); color: rgb(255,255,255)"> </p>
</form>

hth
 
F

FrontPageForms

Michael,

Try this link at my site ...
http://www.frontpageforms.com/drop_down_navigator.htm

I am changing hosts, so if that doesn't bring up the page,
go to the link below

http://www.frontpag.bizland.com/drop_down_navigator.htm

This DD example requires a <Head> script on every page
that uses the menu. Kind of a nusiance, but it has worked
well for me for a long time. Also, don't change the form
name. If you need more than one on a page, still use the
same form name.

Mike,
Temporarily @ http://FrontPag.Bizland.com
Form Tutorials & Form Script Examples
 

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