I’m using the following code for a drop down menu but I want the selected option to open in a new window. How should I change this code to make this work?
<form name="blah_blah">
<select name="ddmenu_name" style="width: 80% !important;">
<option value="first_option_name" selected>option display name</option>
<option value="1st link to content">1st option name</option>
<option value="2nd link to content">2nd option name</option>
</select>
<input type="button" name="Submit" value="Go!" onClick="top.location.href = this.form.ddmenu2.options[this.form.ddmenu2.selectedIndex].value;
return false;">
</form>
Thank you!
see below…
index.html
page1.html
page2.html
Hope this is what you needed!!!
Good Luck!!!
Update 1
If you want to open new window quickly after selecting option (and not pressing Go button), below is code