JavaScript » Layer » parentLayer

Syntax:
later.parentLayer

For a layer nested within another, this property is a reference to the parent Layer object. If not a nested layer, this property refers to the Window object that contains the layer.