Cross-browser scrolling tbody

DOM level 2 Attributes
Internet Explorer 6 = MSIE 6 for windows Netscape 6.2 or higher = Netscape 6.2 or higher Opera 7 or higher = Opera 7 or higher
Attribute General syntax and example Description and/or explanation Support
attributes x.attributes.item(1)
x.attributes["align"]
Returns in a NamedNodeMap object a collection of all possible attributes of node x in no particular order. Returns the 2nd attribute object of node x. Returns the attribute node align from node x. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
caption x.caption
Gets the caption object of node x which must be a table element. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
cells x.cells Returns an HTMLCollection of all <td> nodes of node x which must be a table row Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
cellIndex x.cellIndex Returns the index (in the row) of node x which must be a <td> or a <th> The index of this cell in the row, starting from 0. This index is in document tree order and not display order. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
cellPadding x.cellPadding
x.cellPadding = "6"
Gets or sets the cellpadding attribute of a node which must be a table. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
cellSpacing x.cellSpacing
x.cellSpacing = "6"
Gets or sets the cellspacing attribute of a node which must be a table. The rules attribute must not be defined and border-collapse:separate must be the actual declaration Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
childNodes x.childNodes[4] Returns a NodeList object that contains all children of such node. Returns the 5th node of node x. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
className x.className
x.className="newClassName"
Gets or sets the class attribute of element x. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
data x.data
x.data="new text"
Gets or set the character data of node x that implements the CharacterData interface. Equivalent to nodeValue only if the node is of type TEXT_NODE Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
documentElement x = document.documentElement.scrollHeight This is a convenience attribute that allows direct access to the child node that is the root element of the document. For HTML documents, this is the element with the tagName "HTML". Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
doctype document.doctype.systemId The Document Type Declaration (DTD) associated with a document. The doctype declaration is in the prologue of the document. Netscape 6.2 or higher
Opera 7 or higher
firstChild x.firstChild The first child of node x. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
frame x.frame
x.frame = "above"
Gets or sets the external table borders to render. Possible values: void, box, border, above, below, hsides (horizontal sides), lhs (left hand side), rhs (right hand side), vsides (vertical sides). Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
id x.id
x.id="newIdValue"
Gets or set the id attribute value of the HTML element Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
implementation document.implementation The DOMImplementation object that handles the document Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
lastChild x.lastChild The last child of node x. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
name x.name Gets or sets the name value attribute of node x. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
nextSibling x.nextSibling The node immediately following node x Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
nodeName x.nodeName The name of node x, depending on its type. If node x is of type TEXT_NODE, then the nodeName returns #text otherwise it returns the name of the HTML element or the name of the attribute. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
nodeType x.nodeType 1 is an HTML element
2 is an attribute
3 is a text node
One convenient way to avoid memorizing these numbers is to use constants such as ELEMENT_NODE, ATTRIBUTE_NODE and TEXT_NODE. Only Mozilla supports these constants.
Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
nodeValue x.nodeValue
x.nodeValue
x.nodeValue = "New value"
Gets or sets the value of node x, depending on its type Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
offsetParent x.offsetParent The offsetParent is the parent node acting as the positioning parent of node x. Often it is the closest (in the document hierarchy) absolutely positioned containing block of a node. This is a DHTML object model property and is very useful for defining offsetLeft, offsetTop DHTML properties of elements. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher
ownerDocument x.ownerDocument The Document object associated with node x. This is also the Document object used to create new nodes. Internet Explorer 6
Netscape 6.2 or higher
Opera 7 or higher

Valid HTML 4.01! CSS compliant Web standards project

© Gérard Talbot   |   Site map