Key | Description | Availability |
---|
attributes | Array of attributes for the element. | |
childnodes | Array of the child nodes of the element. | |
children | Array of the child nodes of the element. | |
classname | Name of the CSS class that the element belongs to. | |
clientheight | Height of the content of the element (in pixels). | |
clientwidth | Width of the content of the element (in pixels). | |
dir | Direction of the text in the element. Possible values are "ltr" (left-to-right) or "rtl" (right-to-left). | |
disabled | If true, indicates that the element is disabled. | |
firstchild | Reference to the first child element of the element, if one exists. | |
id | Unique identifier for the element. | |
innerhtml | HTML content within the tags of the element. | |
innertext | Text string enclosed by the tags of the element. Any HTML tags will be interpreted as part of the text string, not as HTML. | |
lang | Language code for the content of the element. | |
lastchild | Reference to the last child element of the element, if it exists. | |
localname | Local XML name for the element. | |
namespaceuri | The XML Namespace URI for the element. | |
nextsibling | Reference to the next sibling element of the element. | |
nodename | Name of the element tag. | |
nodetype | Node type for the element. See Remarks for full explanation. | |
nodevalue | Value of the element. | |
offsetheight | Height of the element (in pixels). | |
offsetleft | Number of pixels the left edge of the element is offset from the left edge of its parent element. | |
offsetparent | Reference to the parent object corresponding with the offsetHeight, offsetWidth, offsetLeft, and offsetTop properties. | |
offsettop | Number of pixels the top edge of the element is offset from the top edge of its parent element. | |
offsetwidth | Width of the element (in pixels). | |
outerhtml | HTML mark-up for an element, including start and end tags and any content between the tags. | |
outertext | Plain text for an element, including start and end tags. | |
ownerdocument | Reference to the document that contains the element. | |
parentnode | Reference to the direct parent node of the element, if it exists. | |
prefix | Prefix XML name for the element. | |
previoussibling | Reference to the previous sibling element of the element, if it exists. | |
scrollheight | Height (in pixels) of the total content area of the element. | |
scrollleft | Number of pixels between the actual left edge of the element to the displayed left edge of the element. | |
scrolltop | Number of pixels between the actual top edge of the element to the displayed top edge of the element. | |
scrollwidth | Width (in pixels) of the total content area of the element. | |
style | Reference to the inline CSS style for the element. | |
tabindex | Indicates the tab order index for the element. | |
tagname | HTML tag name for the element. | |
title | Value of the title attribute for the element. | |
onblur | Fires when the element loses focus. | |
onclick | Fires when the element is clicked. | |
ondblclick | Fires when the element is double-clicked. | |
onfocus | Fires when the element receives focus. | |
onkeydown | Fires when a user presses down on a key while the element has focus. | |
onkeypress | Fires when a user presses a key or holds down the key while the element has focus. | |
onkeyup | Fires when a user releases a key while the element has focus. | |
onmousedown | Fires when a user clicks down on the mouse button while the element has focus. | |
onmousemove | Fires when the mouse moves while the pointer over the element. | |
onmouseout | Fires when the mouse pointer moves off of the element. | |
onmouseover | Fires when the mouse pointer moves over the element. | |
onmouseup | Fires when the user releases the mouse button while the element has focus. | |