Properties and methods of the document object
The following table details the properties and methods of the document
object that are taken from DOM Level 1 and used in Adobe Dreamweaver. A bullet () marks read-only properties.
Property or method | Return value |
---|---|
nodeType | Node.DOCUMENT_NODE |
parentNode | null |
parentWindow | The JavaScript object that corresponds to the document's parent window. (This property is not included in DOM Level 1; however, Microsoft Internet Explorer 4.0 supports it.) |
childNodes | A |
documentElement | The JavaScript object that corresponds to the |
body | The JavaScript object that corresponds to the |
URL | The |
getElementsByTagName(tagName) | A If the If the |
hasChildNodes() | true |