"Mick White" <mw******@BOGUSrochester.rr.com> wrote in message
news:rt*********************@twister.nyroc.rr.com. ..
Olly wrote:
<form name="jump">
<select name="month">
<option value="#jan">January</option>
<option value="#feb">Febuary</option>
<option value="#mar">March</option>
<option value="#apr">April</option>
<option value="#may">May</option>
</select>
<select name="year">
<option value="index.html">2004</option>
<option value="2003.html">2003</option>
</select>
<input type="button"
onClick="location=document.jump.month.options[document.jump.month.selectedIn
dex].value;" value="GO">
</form>
onclick= "location=this.year.options[this.year.selectedIndex].value+
this.month.options[this.month.selectedIndex].value;"
Mick
have i added the code in right cos it still doesn't work:
<form name="jump">
<select name="month">
<option value="#jan">January</option>
<option value="#feb">Febuary</option>
<option value="#mar">March</option>
<option value="#apr">April</option>
<option value="#may">May</option>
</select>
<select name="year">
<option value="index.html">2004</option>
<option value="2003.html">2003</option>
</select>
<input type="button"
onclick="location=this.year.options[this.year.selectedIndex].value+this.mont
h.options[this.month.selectedIndex].value;" value="GO">
</form>
this is the error i get:
Line: 34
Char: 1
Error: 'this.year.options' is null or not an object
Code: 0