Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    ON. Canada
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Forms ... option to open in a new window

    I should know how to do this but my blonde moments gotten me I want the user to select a month from the calendar area and have it open in a new window

    <form name="a294">
    <select name="a969" onChange="displaydesc(document.a294.a969.selectedIndex)" size="1">
    <option value="Calendar/jan.html" *_blank>January</option>
    <option value="Calendar/feb.html">February</option>
    <option value="Calendar/march.html">March</option>
    <option value="Calendar/April.html">April</option>
    <option value="Calendar/may.html">May</option>
    <option value="Calendar/june.html">June</option>
    <option value="Calendar/july.html">July</option>
    <option value="Calendar/aug.html">August</option>
    <option value="Calendar/sept.html">September</option>
    <option value="Calendar/oct.html">October</option>
    <option value="Calendar/nov.html" selected>November</option>
    <option value="Calendar/dec.html">December</option>
    </select>
    <input type="button" value="Go"
    onClick="location=document.a294.a969.options[document.a294.a969.selectedIndex].value" name="button">
    </form>

    Thanks
    Freddi

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Without a Go Button.
    Change / add window parameters to suit.

    <form name="a294">
    <select name="a969" onChange="window&#46;open(options[selectedIndex].value,
    'newwin', 'menubar=yes,scrollbars=yes,left=100,top=50,width=500,height=400')">
    <option value="javascript&#58;window.close()">Select from list_</option>
    <option value="Calendar/jan.html">January</option>
    <option value="Calendar/feb.html">February</option>
    <option value="Calendar/march.html">March</option>
    <option value="Calendar/April.html">April</option>
    <option value="Calendar/may.html">May</option>
    <option value="Calendar/june.html">June</option>
    <option value="Calendar/july.html">July</option>
    <option value="Calendar/aug.html">August</option>
    <option value="Calendar/sept.html">September</option>
    <option value="Calendar/oct.html">October</option>
    <option value="Calendar/nov.html">November</option>
    <option value="Calendar/dec.html">December</option>
    </select>
    </form>

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Location
    ON. Canada
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Thank you Thank you Thank you Thank you


  •  

    Posting Permissions

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