JavaScript » Layer » document

Syntax:
layer.document

This property is used to access the document contained within a layer. All the methods available to the Document object can also be used to modify the contents of the layer.