[thelist] Simple navigation Menu form question

Joe Crawford jcrawford at avencom.com
Mon Aug 6 22:38:19 CDT 2001


Eric Benvenue-Jennings wrote:
> I'm trying to create a simple pull-down menu with navigation links. So far, the
> method below is the simplest that I've found. Aside from the fact that it won't
> validate (<form> is missing an ACTION), are there any flaws in it? Are there
> good reasons NOT to do this? My initial tests show it working in IE 5 and
> Netscape 4, Mac and IE 4 and Netscape 4, PC.
> 
> <form>
>     <select name="list">
>         <option selected value="#">JumpTo...</option>
>         <option value="http://www.url1.com">Link1</option>
>         <option value="http://www.url2.com">Link2</option>
>         <option value="http://www.url3.com">Link3</option>
>     </select>
>     <input type="button" name="JumpTo" value="GO"
> onclick="top.location.href=this.form.list.options[this.form.list.selectedIndex].value">
> </form>

Some (not all) of the stuff I have in my artlung lab validates fine -
the trick is to put a legal url, but nonsense URL <form action="./">
does fine. It's academic anyway, without a proper submit button, it
won't submit anyway.

And yes, be sure to provide something in terms of nav for your non-js
having customers. :-)

	- Joe <http://artlung.com/>
-- 
...................  Joe Crawford \\ Web Design & Development
.....  mailto:jcrawford at avencom.com \\ http://www.avencom.com
.... San Diego \\ CA \\ USA \\ AVENCOM: Set Your Sites Higher




More information about the thelist mailing list