SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1909 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


The same rules of use and the same restrictions for implementing forms in objects apply, likewise, to implementing
forms in behaviors. Additionally, the Dreamweaver DOM addresses other major objects as outlined
in Table 2-1. Read-only properties are marked with an asterisk (*); otherwise, properties can be both read
and set.
TABLE 2-1
Dreamweaver DOM Properties
Property Nodes Returns Description
nodeType* all Node.DOCUMENT_NODE Returns the node of the specified
Node.ELEMENT_NODE selection
Node.TEXT_NODE
Node.COMMENT_NODE
parentNode* all string (HTML tag), Returns null for the document
document object, or null object; returns the parent tag for
element, text, and comment
objects; if an HTML tag is
selected, returns the document
object
parentWindow* DOCUMENT_NODE parent window object Returns the JavaScript object
corresponding to the document??™s
parent window
childNodes* all NodeList Returns a NodeList array of
the immediate children of the
current selection
documentElement* DOCUMENT_NODE HTML tag of current Returns the JavaScript object
document corresponding to the HTML tag
of the current document
body* DOCUMENT_NODE BODY tag of current Returns the JavaScript object
document corresponding to the BODY tag
of the current document
URL* DOCUMENT_NODE file://URL Returns the file://URL for the
current document
tagName* ELEMENT_NODE IMG Returns the HTML name
TABLE (in CAPS) for the current tag
attrName ELEMENT_NODE grey Returns the value of the
#33CC66 specified tag attribute
innerHTML ELEMENT_NODE for

Hello world! Returns the HTML source for a

tag, without the tag code itself
p.


Pages:
1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921