A
Andy Fish
Hi,
when I try to load this page on netscape or mozilla (latest versions), I get
the error
Error: document.form1.radiogroup[0] has no properties.
It works fine on Opera or IE.
I'm sure it is something to do with the definition of the <input> tags
because if I move the type=radio to the beginning it works all right. I'm
not sure whether it's a bug in the browser or a misunderstanding on my part
which the other browsers are working around.
If this is a bug in mozilla, does anybody know any other workaround except
changing the order of the attributes. Unfortunately, I'm generating this
HTML with XSL and don't have control over the order the attributes get
generated.
<html>
<BODY onload="alert( document.form1.radiogroup[0].value);">
<FORM name="form1" id="form1" >
<input id="radiogroup" value="one" name="radiogroup" type="radio"> one
<input id="radiogroup" value="two" name="radiogroup" type="radio" > two
</FORM>
</BODY>
</html>
when I try to load this page on netscape or mozilla (latest versions), I get
the error
Error: document.form1.radiogroup[0] has no properties.
It works fine on Opera or IE.
I'm sure it is something to do with the definition of the <input> tags
because if I move the type=radio to the beginning it works all right. I'm
not sure whether it's a bug in the browser or a misunderstanding on my part
which the other browsers are working around.
If this is a bug in mozilla, does anybody know any other workaround except
changing the order of the attributes. Unfortunately, I'm generating this
HTML with XSL and don't have control over the order the attributes get
generated.
<html>
<BODY onload="alert( document.form1.radiogroup[0].value);">
<FORM name="form1" id="form1" >
<input id="radiogroup" value="one" name="radiogroup" type="radio"> one
<input id="radiogroup" value="two" name="radiogroup" type="radio" > two
</FORM>
</BODY>
</html>