Platform Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
Document Constructor() : Document
Creates a new instance of a Document object.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | ||
Document() : DocumentCreates a new instance of a Document object. Returns
|
||||||||
Inherited Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
attributes
: NamedNodeMap
Attributes for an element node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
childNodes
: NodeList
Child nodes of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
firstChild
: Node
First child node of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
lastChild
: Node
Last child node of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
localName
: String
Local part of an element or attribute name if it the node was defined with an XML Namespace.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
namespaceURI
: String
URI of the namespace for an element or attribute node if the node was defined with an XML Namespace.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nextSibling
: Node
Sibling node immediately after the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nodeName
: String
Name of the node. Same as tag name for element nodes.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nodeType
: Number
Type of node. See Remarks for valid values.
|
Show Details | 5.5+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nodeValue
: String
Value of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
ownerDocument
: Document
Document object that contains this node.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
parentNode
: Node
Parent node of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
prefix
: String
Namespace prefix for an element or attribute node if the node was defined with an XML Namespace.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
previousSibling
: Node
Sibling node immediately before the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
Reference to the Element that currently has focus.
|
No Details | 4.0+ | no | no | no | no |
|
|
||||||
|
alinkColor
: String
Specifies the color of active links.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
|
anchors
: Array
Array of all of the Anchor objects in a document.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
|
applets
: Array
Array of all of the Applet objects in a document.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
|
||||||
|
bgColor
: String
Background color of a document.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
|
body
: Element
Reference to the body or frameset element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
Character set of the document.
|
No Details | 4.0+ | no | no | no | no |
|
|
||||||
|
Character set of the document.
|
No Details | no | 1.0+ | 6.0+ | no | 1.0+ |
|
|
||||||
|
Array of style properties for CSS classes.
|
No Details | no | no | 4.0+ | no | no |
|
|
||||||
|
compatMode
: Boolean
Indicates whether the document has standards-compliant mode turned on.
|
Show Details | 6.0+ | 1.75+ | 7.0+ | no | no |
|
||||||
|
cookie
: String
Value of the cookie that the browser has set for the document.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
|
Default character set for the document.
|
No Details | 4.0+ | no | no | no | no |
|
|
||||||
|
designMode
: String
Specifies that design mode for an HTML document is "on" or "off."
|
Show Details | 5.0+ | 1.4+ | 7.0+ | no | no |
|
||||||
|
dir
: String
Text direction of the content in the document.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | no | no |
|
||||||
|
doctype
: DocumentType
Document Data Type (DTD) associated with this document.
|
Show Details | |||||
