B
BernieH
I'm trying to get the links in the following dropdown list to open up in a
new window when the Go button is pressed. At the moment they open up in the
same window. Can anybody help?
<form name="quicklinks">
<select name="links">
<option value=" ">--Select--</option>
<option value="examples.htm">Examples</option>
<option value="main.htm">Main</option>
<option value="http://www.google.com">Test</option>
</select>
<input type="button" name="go" value="Go!"
onClick="window.location=document.quicklinks.links.options[document.quicklinks.links.selectedIndex].value">
</form>
TIA
BernieH
new window when the Go button is pressed. At the moment they open up in the
same window. Can anybody help?
<form name="quicklinks">
<select name="links">
<option value=" ">--Select--</option>
<option value="examples.htm">Examples</option>
<option value="main.htm">Main</option>
<option value="http://www.google.com">Test</option>
</select>
<input type="button" name="go" value="Go!"
onClick="window.location=document.quicklinks.links.options[document.quicklinks.links.selectedIndex].value">
</form>
TIA
BernieH