On this Page
domObj.descendant
(Merge only)
Determine if an object has a descendant object with a given name.
Syntax
domObj.descendant(
name)
Returned Value
The domObj pointer of the descendant with the supplied name, or null
if no descendant with that name exists.
Parameters
name is a string, which is the name of a, considered by you to be a possible, descendant of this object.
Description
The descendant function allows one to write a script that is much easier and more maintainable than a script that uses the childNamed function to iterate through the levels of hierarchy to find an object by name.