[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

04/22/2009 at 03:16PM PDT, ID: 24347135 | Points: 125
[x]
Attachment Details

Drop down form for navigation

Asked by jbloggs2002 in JavaScript, Navigational Systems, Hypertext Markup Language (HTML)

Tags: javascript navigation

I found this code online that does almost exactly what I want, except that I need to open in the same page, not a new one - can anyone help?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
<form action="../">
<select name="myDestination">
    <option value="http://www.yahoo.com/">YAHOO</option>
    <option value="http://www.google.com/">GOOGLE</option>
    <option value="http://www.altavista.com/">ALTAVISTA</option>
    <option value="http://www.amazon.com/">AMAZON</option>
    <option value="http://artlung.com/">ARTLUNG</option>
</select>
<input type="button"
    value="Open in New Window!"
    onclick="ob=this.form.myDestination;window.open(ob.options[ob.selectedIndex].value)">
</form>
[+][-]04/22/09 03:45 PM, ID: 24210432

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/09 03:48 PM, ID: 24210454

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625