View Full Version : Is there a drop-down trick?


kempkrafts
03-14-2004, 02:08 AM
I have tried to use each of the different drop-down menu codes found on Lissa's HTML help site, but I can't get them to go anywhere when you select something. I have the menu, it looks just as I want it, but it doesnt actually go anywhere... HELP ME PLEASE!!!!!

This is the first one I have on my test page...

{http://www.geocities.com/quilts_n_more1/test-page1.html}


<center>
<form name="gotolocation1" method="POST" ACTION=URI>
<select name="tam-menu1">
<option value="http://www.geocities.com/quilts_n_more1/test-page2.html">Test Page #2</option>
<option value="http://www.geocities.com/quilts_n_more1/test-page3.html">Test Page #3</option>
<option value="http://www.geocities.com/quilts_n_more1/test-page4.html">Test Page #4</option>
</select>
<input type="button" onClick="location =
document.gotolocation1.tam-menu1.options
[document.gotolocation1.tam-menu1.selectedIndex].value;"
value="Go">
</form>
</center>



Please help me find what I did wrong....

Thank you,
kempkrafts

Sheila
03-14-2004, 10:43 AM
This should work. It's because you had tam-menu1...you can't do that.

<center>
<form name="gotolocation1" method="POST" ACTION=URI>
<select name="tammenu1">
<option value="http://www.geocities.com/quilts_n_more1/test-page2.html">Test Page #2</option>
<option value="http://www.geocities.com/quilts_n_more1/test-page3.html">Test Page #3</option>
<option value="http://www.geocities.com/quilts_n_more1/test-page4.html">Test Page #4</option>
</select>
<input type="button" onClick="location =
document.gotolocation1.tammenu1.options
[document.gotolocation1.tammenu1.selectedIndex].value;"
value="Go">
</form>
</center>

kempkrafts
03-14-2004, 11:41 AM
You're WONDERFUL... Thank you! It's amazing just how much trouble 1 small line can make in ones coding...

Thanks Again!

Tam :cheer2: