D
D. Alvarado
Hello, I'm having problems on IE 6.0 for Win XP. I want to iterate
through the elements of a form, but one of those elements is named
'length'. So, this JS code doesn't display any alert boxes, even
though it should display 3.
for (var i=0; i<myForm.elements.length; i++) {
alert(myForm.elements.name);
}
Can anyone suggest a cross-browser work-around? Thanks -
through the elements of a form, but one of those elements is named
'length'. So, this JS code doesn't display any alert boxes, even
though it should display 3.
for (var i=0; i<myForm.elements.length; i++) {
alert(myForm.elements.name);
}
Can anyone suggest a cross-browser work-around? Thanks -