<form name="test">
<select name="choose" style="width:300px;">
<option selected="">Select option</option>
<option value="http://url.com">Test</option>
</select>
<input onclick="location=document.test.choose.options[document.test.choose.selectedIndex].value;" value="Take me there!" type="button"></p>
</form>
Im using the following to make a dropdown list and was just wondering how i would make selected open in a new tab and not in its own window
Works fine as it is just need it to open in a new tab.
* Edit *
This worked as needed thanks
<input onClick="window.open(document.test.choose.options[document.test.choose.selectedIndex].value);" value="Take me there!" type="button">