Text Tield code?
I have this Text Tield code. You select an item from the dropdown and click the Submit button, and you are taken to the destination url. But I cant make it work.....
Anyone knows hov it should look, to lets say: go to google on Location 1, and yahoo on Location 2?
<span class="text">Select a location in the list below<br>and click the "Go"
button.</span><br><br>
<SCRIPT LANGUAGE="JavaScript">
<!--function goto_URL(object) {
window.location.href = object.options[object.selectedIndex].value;
}
//--></SCRIPT>
<select name="selectName" style="font-size:9px;">
<option value="destination_url1.htm">Location 1</option>
<option value="destination_url2.htm">Location 2</option>
<option value="destination_url3.htm">Location 3</option>
</select>
<input type="button" value="Go" onClick="goto_URL(document.dynamiclist.selectName)">
|