I defined my own attribute in an INPUT tag of a form like this:
<INPUT TYPE="text" NAME="field1" MYTAG1="xyz">
then I access the form element in a javascript like this:
ThisElement = ThisForm.elements[0];
then I display my attributes value like this
alert(ThisElement.MYTAG1);
In IE the value is displayed in the alert as "xyz"
but in NS the value is displayed as "undefined"
Does NS not allow self-defined attributes like this?
Or do I not have the javascript coded properly for NS?
Thanks in advance.
<INPUT TYPE="text" NAME="field1" MYTAG1="xyz">
then I access the form element in a javascript like this:
ThisElement = ThisForm.elements[0];
then I display my attributes value like this
alert(ThisElement.MYTAG1);
In IE the value is displayed in the alert as "xyz"
but in NS the value is displayed as "undefined"
Does NS not allow self-defined attributes like this?
Or do I not have the javascript coded properly for NS?
Thanks in advance.