[thelist] drop down box
Jeff
jeff at members.evolt.org
Thu Jul 27 20:12:15 CDT 2000
sharon,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Stevens, Sharon <StevenS at prose.dpi.qld.gov.au>
:
: I've got a drop down box which currently takes
: you to the page you select in the box. What I need
: to do is stop the automatic redirect and add a "go"
: button.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
all you have to do is remove the onChange event handler from the select tag
and move it to the onClick event handler of the go button.
<select name="Redirect" class="selectNav">
<option selected>Browse by Subject</option>
<option value="/">Animals</option>
<option value="/">Broad-acre field crops</option>
<option value="/business/">Business & economics</option>
<option value="/">Community issues</option>
<option value="/">Environmental management</option>
<option value="/">Fisheries, aquaculture & seafood</option>
<option value="/">Food technology</option>
<option value="/">Forestry, timber & wood</option>
<option value="/">Horticulture & fresh produce</option>
<option value="/">Pastures</option>
<option value="/">Pest & disease control</option>
<option value="/">Science & technology</option>
</select>
<input type="button" value="Go"
onClick="location.href =
document.forms[0].Redirect.options[document.forms[0].Redirect.selectedIndex]
.value">
good luck,
.jeff
name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org
More information about the thelist
mailing list