Programmer's Guide > Interfaces > W3C Node interface > ownerDocument attribute
  
ownerDocument attribute
The Document object associated with this node. This is also the Document object used to create new nodes. When this node is a Document or a DocumentType which is not used with any Document yet, this is null.
ownerDocument
Access
read-only
Returns
Document