Property | Defined By | ||
---|---|---|---|
DOM 1 Core attributes : NamedNodeMap [read-only]
Returns an unordered collection of Attr nodes. | Node | ||
Non-Standard baseName : DOMString [read-only]
Returns the base name for the name qualified with the namespace. | Node | ||
DOM 3 Core baseURI : DOMString [read-only]
The absolute base URI of this node or null if the implementation
wasn't able to obtain an absolute URI. | Node | ||
baseURIObject : nsIURI [read-only]
Non-Standard | FireFox 3+
Returns the nsIURI object representing the element's URI. | Element | ||
Element Traversal childElementCount : Number [read-only]
Returns the current number of element nodes that are children of this
element. | Element | ||
DOM 1 Core childNodes : NodeList [read-only]
Returns an ordered collection of node objects that are children of
the current element. | Node | ||
children : NodeList [read-only]
? | FireFox 3.5+
Returns a collection of child elements of the given element. | Element | ||
className : DOMString
The class attribute of the element. | HTMLElement | ||
DOM 3 Core clientHeight : Number [read-only]
Returns the inner height of an element in pixels, including padding but not the horizontal scrollbar height, border, or margin. | Element | ||
DOM 3 Core clientLeft : Number [read-only]
The width of the left border of an element in pixels. | Element | ||
DOM 3 Core clientTop : Number [read-only]
The width of the top border of an element in pixels. | Element | ||
DOM 3 Core clientWidth : Number [read-only]
Returns the inner width of an element in pixels. | Element | ||
Non-Standard dataType : *
Specifies the data type for this node. | Node | ||
Non-Standard definition : Node [read-only]
Returns the definition of the node in the document type definition (DTD) or schema. | Node | ||
dir : DOMString
The dir attribute gets or sets the text writing directionality of
the content of the current element. | HTMLElement | ||
DOM 1 Core firstChild : Node [read-only]
Returns the node's first child in the tree, or null if the node is
childless. | Node | ||
Element Traversal firstElementChild : Element [read-only]
Returns the first child element node of this element. | Element | ||
id : DOMString
Gets or sets the element's identifier. | HTMLElement | ||
innerHTML : DOMString
DOM Level 0 | NS\FireFox\IE4+
Sets or gets all of the markup and content within a given element. | Element | ||
lang : DOMString
This property gets or sets the base language of an element's attribute
values and text content. | HTMLElement | ||
DOM 1 Core lastChild : Node [read-only]
Returns the last child of a node. | Node | ||
Element Traversal lastElementChild : Element [read-only]
Returns the last child element node of this element. | Element | ||
DOM 2 Core localName : DOMString [read-only]
Returns the local part of the qualified name of this node. | Node | ||
DOM 2 Core namespaceURI : DOMString [read-only]
The namespace URI of the node, or null if it is unspecified (read-only). | Node | ||
Element Traversal nextElementSibling : Element [read-only]
Returns the next sibling element node of this element. | Element | ||
DOM 1 Core nextSibling : Node [read-only]
Returns the node immediately following the specified one in its
parent's childNodes list, or null if the specified node is the
last node in that list. | Node | ||
DOM 1 Core nodeName : DOMString [read-only]
Returns the name of the current node as a string. | Node | ||
Non-Standard nodePrincipal : nsIPrincipal [read-only]
Returns the nsIPrincipal object representing current security
context of the node. | Node | ||
DOM 1 Core nodeType : Number [read-only]
Returns an integer code representing the type of the node. | Node | ||
Non-Standard nodeTypedValue : *
Contains the node value expressed in its defined data type. | Node | ||
Non-Standard nodeTypeString : DOMString [read-only]
Returns the node type in string form. | Node | ||
DOM 1 Core nodeValue : DOMString
Returns or sets the value of the current node. | Node | ||
DOM 3 Core offsetHeight : Number [read-only]
Height of an element relative to the element's offsetParent. | Element | ||
DOM 3 Core offsetLeft : Number [read-only]
Returns the number of pixels that the upper left corner of the current
element is offset to the left within the offsetParent node. | Element | ||
DOM 3 Core offsetParent : Element [read-only]
The element from which all offset calculations are currently computed. | Element | ||
DOM 3 Core offsetTop : Number [read-only]
Returns the distance of the current element relative to the
top of the offsetParent node. | Element | ||
DOM 3 Core offsetWidth : Number [read-only]
The width of an element, relative to the layout. | Element | ||
onclick : Function
a pointer button was clicked
| HTMLElement | ||
oncopy : Function
Non-Standard | Firefox 3+
This event is sent when the user attempts to copy text. | HTMLElement | ||
oncut : Function
Non-Standard | Firefox 3+
This event is sent when the user attempts to cut text. | HTMLElement | ||
ondblclick : Function
a pointer button was double clicked
| HTMLElement | ||
onkeydown : Function
a key was pressed down
| HTMLElement | ||
onkeypress : Function
a key was pressed and released
| HTMLElement | ||
onkeyup : Function
a key was released
| HTMLElement | ||
onmousedown : Function
a pointer button was pressed down
| HTMLElement | ||
onmousemove : Function
a pointer was moved within
| HTMLElement | ||
onmouseout : Function
a pointer was moved away
| HTMLElement | ||
onmouseover : Function
a pointer was moved onto
| HTMLElement | ||
onmouseup : Function
a pointer button was released
| HTMLElement | ||
onpaste : Function
Non-Standard | Firefox 3+
This event is sent when the user attempts to paste text. | HTMLElement | ||
DOM 1 Core ownerDocument : Document [read-only]
The Document object associated with this node. | Node | ||
DOM 1 Core parentNode : Node [read-only]
Returns the parent of the specified node in the DOM tree. | Node | ||
Non-Standard parsed : Boolean [read-only]
Indicates the parsed status of the node and child nodes. | Node | ||
DOM 2 Core prefix : DOMString
Returns the namespace prefix of the specified node, or null if no
prefix is specified. | Node | ||
Element Traversal previousElementSibling : Element [read-only]
Returns the previous sibling element node of this element. | Element | ||
DOM 1 Core previousSibling : Node [read-only]
Returns the node immediately preceding the specified one in its
parent's childNodes list, null if the specified node is the first
in that list. | Node | ||
schemeTypeInfo : TypeInfo [read-only]
DOM Level 3 | None
The type information associated with this element. | Element | ||
DOM 3 Core scrollHeight : Number [read-only]
Height of the scroll view of an element; it includes the element padding but not its margin. | Element | ||
DOM 3 Core scrollLeft : Number
Gets or sets the number of pixels that an element's content is scrolled to the left. | Element | ||
DOM 3 Core scrollTop : Number
Gets or sets the number of pixels that the content of an element is scrolled upward. | Element | ||
DOM 3 Core scrollWidth : Number [read-only]
Returns either the width in pixels of the content of an element or the width of the element itself, whichever is greater. | Element | ||
Non-Standard specified : Boolean [read-only]
Indicates whether the node (usually an attribute) is explicitly specified or derived
from a default value in the document type definition (DTD) or schema. | Node | ||
style : CSSStyleDeclaration [read-only]
Returns an object that represents the element's style attribute. | HTMLElement | ||
DOM 2 Core tagName : DOMString [read-only]
The name of the element. | Element | ||
Non-Standard text : DOMString
Represents the text content of the node or the concatenated text representing the node and its descendants. | Node | ||
DOM 3 Core textContent : DOMString
Gets or sets the text content of a node and its descendants. | Node | ||
title : DOMString
Establishes the text to be displayed in a 'tool tip' popup when the
mouse is over the displayed node. | HTMLElement | ||
Non-Standard xml : DOMString [read-only]
Contains the XML representation of the node and all its descendants. | Node |
className | property |
className:DOMString
The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.01.
public function get className():DOMString
public function set className(value:DOMString):void
dir | property |
dir:DOMString
The dir attribute gets or sets the text writing directionality of the content of the current element. Possible values for dir are ltr, for Left-to-right, and rtl, for Right-to-left. Note: The text writing directionality of an element is which direction that text goes (for support of different language systems). Arabic languages and Hebrew are typical languages using the rtl directionality. Note: An image can have its dir attribute set to rtl in which case the HTML attributes title and alt will be formatted and defined as rtl. Note: When a table has its dir set to rtl, the column order are arranged from right to left.
public function get dir():DOMString
public function set dir(value:DOMString):void
id | property |
id:DOMString
Gets or sets the element's identifier. Note: The ID must be unique in a document, and is often used to retrieve the element using document.getElementById.
public function get id():DOMString
public function set id(value:DOMString):void
lang | property |
lang:DOMString
This property gets or sets the base language of an element's attribute values and text content. Note: The language code returned by this property is defined in RFC 1766. Common examples include "en" for English, "ja" for Japanese, "es" for Spanish and so on. The default value of this attribute is unknown. Note that this attribute, though valid at the individual element level described here, is most often specified for the root element of the document. Note: This also only works with the deprecated lang attribute and not with xml:lang.
public function get lang():DOMString
public function set lang(value:DOMString):void
onclick | property |
onclick:Function
a pointer button was clicked
public function get onclick():Function
public function set onclick(value:Function):void
oncopy | property |
oncopy:Function
Non-Standard | Firefox 3+ This event is sent when the user attempts to copy text.
public function get oncopy():Function
public function set oncopy(value:Function):void
oncut | property |
oncut:Function
Non-Standard | Firefox 3+ This event is sent when the user attempts to cut text.
public function get oncut():Function
public function set oncut(value:Function):void
ondblclick | property |
ondblclick:Function
a pointer button was double clicked
public function get ondblclick():Function
public function set ondblclick(value:Function):void
onkeydown | property |
onkeydown:Function
a key was pressed down
public function get onkeydown():Function
public function set onkeydown(value:Function):void
onkeypress | property |
onkeypress:Function
a key was pressed and released
public function get onkeypress():Function
public function set onkeypress(value:Function):void
onkeyup | property |
onkeyup:Function
a key was released
public function get onkeyup():Function
public function set onkeyup(value:Function):void
onmousedown | property |
onmousedown:Function
a pointer button was pressed down
public function get onmousedown():Function
public function set onmousedown(value:Function):void
onmousemove | property |
onmousemove:Function
a pointer was moved within
public function get onmousemove():Function
public function set onmousemove(value:Function):void
onmouseout | property |
onmouseout:Function
a pointer was moved away
public function get onmouseout():Function
public function set onmouseout(value:Function):void
onmouseover | property |
onmouseover:Function
a pointer was moved onto
public function get onmouseover():Function
public function set onmouseover(value:Function):void
onmouseup | property |
onmouseup:Function
a pointer button was released
public function get onmouseup():Function
public function set onmouseup(value:Function):void
onpaste | property |
onpaste:Function
Non-Standard | Firefox 3+ This event is sent when the user attempts to paste text.
public function get onpaste():Function
public function set onpaste(value:Function):void
style | property |
style:CSSStyleDeclaration
[read-only] Returns an object that represents the element's style attribute.
Note: Since the style property has the same (and highest) priority in the CSS cascade as an inline style declaration via the style attribute, it is useful for setting style on one specific element.
Note: However, it is not useful for learning about the element's style in general, since it represents only the CSS declarations set in the element's inline style attribute, not those that come from style rules elsewhere, such as style rules in the <head> section, or external style sheets.
Note: To get the values of all CSS properties for an element you should use window.getComputedStyle instead.
public function get style():CSSStyleDeclaration
title | property |
title:DOMString
Establishes the text to be displayed in a 'tool tip' popup when the mouse is over the displayed node. If a node does not have a title attribute, then the default action is to inherit it from its parent node, which in turn may inherit it from its parent node, etc.
public function get title():DOMString
public function set title(value:DOMString):void