What am I missing?

Discussion in 'Web Design & Coding' started by Lighter, May 7, 2003.

  1. Lighter

    Lighter . . . . . . . . .

    Messages:
    229
    Location:
    NYC
    How can I target the url launch? Some I need to launch into a new window, some into the parent window. With the below form, the standard target tag doesn't work.

    Code:
    <form name="jump">
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
    <option value="">Test Menu</option>
    <option value="http://www.blank.net">Blank 1</option>
    <option value="http://www.blank.net">Blank 2</option>
    <option value="http://www.blank.net">Blank 3</option>
    </select>
    </form>
    
     
  2. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    With parent window you use "parent.location = ..." and with new window you'll need to use the window.open() function afaik.
     
  3. Lighter

    Lighter . . . . . . . . .

    Messages:
    229
    Location:
    NYC
    'doh.

    <select name="menu" onChange= " window.open(document.jump.menu.options[document.jump.menu.selectedIndex].value);" value="GO">

    Yup...That worked. Thanks, Zedric. :)