
May 2nd, 2004, 04:22 AM
|
|
Registered User
|
|
Join Date: May 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Html form (Category Jump)
Hi,
I'm trying to create a drop down for each area of my site.
After coding the entire thing and trying to test it, I get the
same error "'document.form1.dd1' is null or not an object". after
checking this with several people I found myself stuck in the same
spot. The code for the form is as follows:
Code:
<select name="dd1" size=1 style="font-size: 8pt; font-family: Comic Sans MS (cursive); margin-left: 5; background-color: #DFDFDF">
<option value="">----Choose a Category----
</option>
<option value="<A href="http://pcgonline.ath.cx/index1.html">home
</option>
<option value="<A href="http://pcgonline.ath.cx/">link1
</option>
<option value="<A href="http://pcgonline.ath.cx/">link2
</option>
<option value="<A href="http://pcgonline.ath.cx/">link3
</option>
<option value="<A href="http://pcgonline.ath.cx/">link4
</option>
<option value="<A href="mailto:webmaster@pcgonline.ath.cx">Contact
</option>
</select>
<input type="button"
onClick=
"location =
document.form1.dd1.options
[document.form1.dd1.selectedIndex].value;"
value="Go" style="font-size: 10px; font-family: MS Sans Serif; background-color: #FF9933">
Maybe I'm just overlooking something, I'm not sure. Any help would be greatly appreciated.
|