Properties and methods of the document object
The following table details the properties and methods of the
from DOM Level 1 and used in Dreamweaver. A bullet (•) marks read-only properties.
Property or method
nodeType •
parentNode •
parentWindow •
childNodes •
documentElement •
body •
URL •
getElementsByTagName(tagName)
hasChildNodes()
Return value
Node.DOCUMENT_NODE
null
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.)
A
that contains all the immediate children of the
NodeList
object. Typically the document has a single child,
document
the
object.
HTML
The JavaScript object that corresponds to the
This property is shorthand for getting the value of
and extracting the
document.childNodes
the
.
NodeList
The JavaScript object that corresponds to the
property is shorthand for calling
document.documentElement.childNodes
tag from the
BODY
NodeList
property returns the node for the outermost frameset.
The
for the document or, if the file has not been
file://URL
saved, an empty string.
A
that can be used to step through tags of type
NodeList
(for example,
tagName
IMG
If the
argument is
tag
LAYER
tags and all absolutely positioned
ILAYER
If the
argument is
tag
INPUT
elements. (If a name attribute is specified for one or more
objects, it must begin with a letter, which the HTML
tagName
4.01 specification requires, or the length of the array that this
function returns is incorrect.)
true
object that are taken
document
HTML
tag from
HTML
BODY
and extracting the
. For frameset documents, this
,
, and so on).
DIV
, the function returns all
and
DIV
, the function returns all form
The Dreamweaver DOM
tag.
tag. This
and
LAYER
tags.
SPAN
71
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers