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()
Return value
A
that can be used to step through child tags of
NodeList
type
(for example,
tagName
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.)
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
returned as
Joseph & I
false
,
, and so on).
IMG
DIV
, the function returns all
and
DIV
, the function returns all form
Joseph & I
).
The Dreamweaver DOM
and
LAYER
tags.
SPAN
tag) is
P
is
73
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