Click to See Complete Forum and Search --> : simple auto clickable dropdown list


dagold
01-31-2003, 01:18 AM
I know I've seen it but cannot find the code to save my life. How to create a simple dropdown list that when you select an option, you automatically go to that link.

Does this have to be in Javascript? I could have sworn I saw this capability in simple HTML but can't find it now.

Can anyone help? A sample variation of it is on THIS page farther down in the "Forum Jump" Dropdown box.

An even simpler example is at the bottom of the left column on http://javascript.internet.com/. But this is in Javascript.

km01grant
01-31-2003, 02:15 AM
Something like this?

<form METHOD="POST" onsubmit="window.open(this.elements[0].
options[this.elements[0].selectedIndex]. value,'_top'); return(false)">
<select NAME="service" SIZE="1" width="30" onChange="window.open(this.options[this.selectedIndex].value,'_top')">
<option value="" SELECTED>Start here!
<option value="page.html">Go here
<option value="page.html">Go here
<option value="page.html">Go here
<option value="page.html">Go here
<option value="page.html">Go here</select>

dagold
02-01-2003, 12:24 PM
Thank you km01grant - it works EXACTLY as I wanted.