JavaScript » Layer » top

Syntax:
layer.top

This property is a reference to the top-most browser window that contains the specified layer. Use this property to affect changes to the layer's top-most window i.e. layerName.top.close().