Property or method
getElementsByTagName(tagName)
hasChildNodes()
hasTranslatedAttributes()
Properties and methods of text objects
Each contiguous block of text in an HTML document (for example, the text within a
represented by a JavaScript object. Text objects never have children. The following table
describes the properties and methods of text objects that are taken from DOM Level 1 and
used in Dreamweaver. A bullet (•) marks read-only properties.
Property or method
nodeType •
parentNode •
childNodes •
data
hasChildNodes()
134
The Dreamweaver Document Object Model
Return value
A
that can be used to step through child tags
NodeList
of type
(for example,
tagName
If the
argument is
tag
and
tags and all absolutely positioned
LAYER
ILAYER
and
tags.
SPAN
If the
argument is
tag
elements. (If a name attribute is specified for one or
more
objects, it must begin with a letter, which
tagName
the HTML 4.01 specification requires, or the length of
the array that this function returns is incorrect.)
A Boolean value that indicates whether the tag has
any children.
A Boolean value that indicates whether the tag has any
translated attributes. (This property is not included in
DOM Level 1; it was added to Dreamweaver 3 to
support attribute translation.)
Return value
Node.TEXT_NODE
The parent tag
An empty
NodeList
The actual text string. Entities in the text are
represented as a single character (for example, the text
is returned as
Joseph & I
false
,
, and so on).
IMG
DIV
, the function returns all
LAYER
, the function returns all form
INPUT
).
Joseph & I
DIV
tag) is
P
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers