I was hoping for some help with a select menu. My hope is to link the select menu items to URLs and have them open a new tab/window via the target="_blank" attribute.
Currently my code looks like this:
<form action="">
<select onchange="window.open(this.options[this.selectedIndex].value,'_blank')">
<option value="">~ Please Select a Website from the List Below ~</option>
<option value="https://anysite01.com" target="_blank">LINK 1</option>
<option value="https://anysite02.com" target="_blank">LINK 2</option>
<option value="https://anysite03.com" target="_blank">LINK 3</option>
</select>
</form>
My problem is that I do not want the first option (~ Please Select a Website from the List Below ~) to link to anything. It still needs to be in the dropdown menu though. Is there a way to do this? One more thing. I'm not opposed to using onClick.
Thank you!