I'm trying to couple the "window.location.href" command with the values in a straightforward HTML Select statement, with the intent to get the links to open in the same browser page. It should be simple but I seem to be stuck.
I followed the advice in the thread but I can't seem to get the "window.location.href" command to work. If I use the "window.open" command, instead, the links open in new browser tabs without any issues, but I really need to get them to open in the same browser window/tab. Could someone please take a look at my code and advise as to what I'm doing wrong?
Thanks, in advance, for any help you can offer.
<select style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" name="Drop1">
<option value="http://www.google.com/" selected="selected">Google</option>
onclick="window.location.href(document.Form1.Drop1.options [document.Form1.Drop1.selectedIndex].value); this.selectedIndex = 0; " value="Go" type="button">