Hi,
I have the following code:
<FORM>
<font size="3">Brands </font><br />
<SELECT SIZE="1" NAME="categoryl ist" STYLE="font-size: 8pt">
<OPTION VALUE=http://my.domain,.com/cetegory1.html selected>Catego ry
1</OPTION>
<OPTION VALUE=http://my.domain,.com/cetegory2.html> Category
2</OPTION>
<OPTION VALUE=http://my.domain,.com/cetegory3.html> Category
3</OPTION>
</SELECT>
<a href="javascrip t:;"
onclick="goto_C ategoryURL(this .form.categoryl ist)"><img border="0"
src="../images/mybutton.gif" align="absbotto m"></a>
</FORM>
When I click on the button, I am expecting to go to the URL of the currently
selected item in the select list. Instead, I am getting the following
script error:
"Error: this.form has no properties"
How can I make this code work please?
Thanks,
Don
I have the following code:
<FORM>
<font size="3">Brands </font><br />
<SELECT SIZE="1" NAME="categoryl ist" STYLE="font-size: 8pt">
<OPTION VALUE=http://my.domain,.com/cetegory1.html selected>Catego ry
1</OPTION>
<OPTION VALUE=http://my.domain,.com/cetegory2.html> Category
2</OPTION>
<OPTION VALUE=http://my.domain,.com/cetegory3.html> Category
3</OPTION>
</SELECT>
<a href="javascrip t:;"
onclick="goto_C ategoryURL(this .form.categoryl ist)"><img border="0"
src="../images/mybutton.gif" align="absbotto m"></a>
</FORM>
When I click on the button, I am expecting to go to the URL of the currently
selected item in the select list. Instead, I am getting the following
script error:
"Error: this.form has no properties"
How can I make this code work please?
Thanks,
Don
Comment