Element.document (Property)

The document containing this element.


JScript - 3.0
Internet Explorer - 4.0
Opera - 5.0
Property/method value type:Document object
JavaScript syntax:IEmyElement.document

This is the document in which the Element object is instantiated. Although this is not generally available as an object property in Netscape, it is supported by the Window object by virtue of it being a global value. This means that for most cases, the scope chain adds the document object to all objects, or at least it appears as if they have the property. However, in Netscape, the document property is shared by all objects in the window rather than each having its own private document property that refers to the same document object. The difference is subtle.


See also:Doctype object, Document object, Element object, Element.ownerDocument, Layer.document, Window.document

Property attributes: