I'm trying to setup a drop down menu that when submitted it takes user to a new url, but within the same window. See my current code below. Note: This code takes users to the url, but it open up a new window. I want it to go to the url within the same window.
-------
<script>function goToNewPage(dropdownlist) { var url = dropdownlist.options(dropdownlist.selectedIndex).value; if (url != "") { window.open(url); } }</script>
-------
<form style="margin-bottom:0;" name="dropdown" >
<select name="list" accesskey="E">
<option selected="selected">Please select a state</option>
<option value="sorry.html">Alabama</option>
<option value="sorry.html">Arizona</option>
<option value="sorry.html">Arkansas</option>
</select>
input type="image" src="images/WeShopDlvr_selectbtn2.jpg" width="38" height="39" align="left" onclick="goToNewPage(document.dropdown.list)" />
Any help would be appreciated
