As I understand it, you can reference to a form-field-element by either the ID or as a position in the document.forms-array.
This way you can see how many form field-elements you have on a page:
document.forms.length
I want to see how many <div> I have in a page and reference to them as [0], [1], [2], etc.
<pseudo-code>
var arrLen = document.divs.length;
for (var i = 0; i < arrLen; i++) {
alert(document.divs.style.top);
}
</pseudo-code>
Is there an array like this for <div>?
// Michelle
This way you can see how many form field-elements you have on a page:
document.forms.length
I want to see how many <div> I have in a page and reference to them as [0], [1], [2], etc.
<pseudo-code>
var arrLen = document.divs.length;
for (var i = 0; i < arrLen; i++) {
alert(document.divs.style.top);
}
</pseudo-code>
Is there an array like this for <div>?
// Michelle