I have a little drop down in my nav that I wont to be able to let the user navigate to new pages.
The code looks like this but its not reading the values, only refreshing the actual page its on.
Code:<script language="javascript"> function myChangeHandler() { window.open(this.options[this.selectedIndex].value, '_parent'); this.form.submit(); } </script>Code:<form id="formElement" method="get" action="#"> <select onchange="myChangeHandler.apply(this)"> <option></option> <option value="/tEstablishment.php">View Site 1</option> <option value="/currency.php">View Site 2</option> <option value="/country.php">View Site 3</option> </select> </form>



Reply With Quote




Bookmarks