[thelist] Simple navigation Menu form question

Eric Benvenue-Jennings eric at rapid13.org
Mon Aug 6 09:03:06 CDT 2001


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>

----------------------
Eric Benvenue Jennings
404-819-5023
----------------------
dba Rapid 13
558 Seal Place
Atlanta GA 30308-1818
----------------------
http://rapid13.org
----------------------




More information about the thelist mailing list