Re: drop down

From: Andrew Murray (SPAMadBUSTERmurray_at_iinet.net.au)
Date: 07/22/04


Date: Thu, 22 Jul 2004 17:39:07 +0800

To do this without the GO button.

delete the <input type> tag at the bottom

delete the current opening select tag and replace it with

<select tag, add onchange="eval(setit.options[setit.selectedIndex].value)">

I think this is how you do it....others may post correcting me.

The onchange event is what makes it go straight to the other link.

 <select tag, add onchange="eval(setit.options[setit.selectedIndex].value)">
<option....>.....</option>
</select>

etc.
"Steve Easton" <admin@95isalive.com> wrote in message
news:%233UD9V3bEHA.3480@TK2MSFTNGP11.phx.gbl...
> Try this, copy and paste into a blank page in html view. Then edit the options
for what you want.
>
> <p align="center"><b>Select a Site or Function: </b>
<select id="setit">
> <option value="">Select one</option>
> <option
value="javascript:window.open('http://www.altavista.com')">AltaVista</option>
> <option value="javascript:window.open('http://www.yahoo.com')">Yahoo</option>
> <option value="javascript:window.open('http://www.google.com')">Google</option>
> </select><input type="button" value="Go"
> onclick="eval(setit.options[setit.selectedIndex].value)"></input>
>
>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Gene McKinney" <anonymous@discussions.microsoft.com> wrote in message
> news:1a9401c46f73$f7e6d980$a501280a@phx.gbl...
> > I want to have a drop down but not a form just a menu
> > choose any suggestions?
>
>
Gene,

To do the drop down menu without the GO button.

Delete the <input type> (button) at the bottom of the code;
Add the following code to the opening <select>

onchange="eval(setit.options[setit.selectedIndex].value)"

which gives you:

<select add onchange="eval(setit.options[setit.selectedIndex].value)">

then add your <option> list (as in the demo from Steve Easton)
and close off with </select>