Results 1 to 3 of 3

Thread: Drop Down Menu

  1. #1
    Join Date
    Aug 2010

    Drop Down Menu

    I have a drop down menu that I can't get to open in a new window. I have set the target to blank with no luck. Here is my code:

    <form name="TopicCompass" target="_blank" class="">
    <div align="center"><span class="style31">Retail Compass</span> <br>
    <select name="menu" onChange="location=document.TopicCompass.menu.options[document.TopicCompass.menu.selectedIndex].value;" value="GO">
    <option>Select a Plan</option>
    <option value="http://..Teller_Plan.pdf">Teller</option>
    <option value="http://..FSR_Plan.pdf">FSR</option>
    <option value="http://..PB_Plan.pdf">Personal Banker</option>

    Any help would be much appreciated!

  2. #2
    Join Date
    Mar 2010
    It appears you are misundertanding what a <form> is used for.

    A form is used to collect user inputed data and then send it to a server side script for processing after the submit button was clicked by the user.

    If you want to open the select menu in a new window, I would put the <div> containing the <select> in a separate html file and then use window.open() in the first html file to open the second html file containing your menu.

  3. #3
    Join Date
    Jan 2008
    Try window.open(document.TopicCompass.menu.options[document.TopicCompass.menu.selectedIndex].value)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center