Hi
I'm building a drop down menu and each option link needs to open a new window. Here's the code:
I'm thinking there's extra code I need to add to the onChange, but I'm not sure what that would be. Can anyone help me with this?
Thanks
I'm building a drop down menu and each option link needs to open a new window. Here's the code:
Code:
<form>
<select onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)">
<option>Select a Country</option>
<option value="http://www.link.com">Global</option>
etc.
I'm thinking there's extra code I need to add to the onChange, but I'm not sure what that would be. Can anyone help me with this?
Thanks