...

View Full Version : Forms ... option to open in a new window



Freddi
11-04-2002, 05:08 AM
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 :rolleyes:

PauletteB
11-04-2002, 06:35 AM
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>

Freddi
11-04-2002, 03:21 PM
Thank you Thank you Thank you Thank you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum