Menu
I have the following issue:
I would like to access an object, but the object name is stored in a variable. How can I do this?
Example:
var mystr = “form1”;
document.{mystr}.object.attribute
I would like to access document.form1.object.attribute
The object itself is NOT a form. it’s a generic object.
I’ve used the collections before, but only with a position variable…
document.collection[2].object.attribute
but don’t know how to access by name. Is this possible? do I have to create an array of all my objects and positions so I reference them by position?
Thanks for all your help.
A.-