How to get reference to an object



Is there any way to get a reference to an object based on its name? Let say
I have a string: name = 'object_name'; how can I reference the object using
the string variable name? maybe something like
document.objects['object_name']
Thanks,
Alex.


.


Loading