JavaScript Reference :: TableCell

A TableCell can be retrieved directly from the HTML by using the getElementByTagName method, however, a much more common and useful technique is to associate a TableCell with a specific TableRow object.

methods

properties

abbr
The abbreviated content of the cell.
align
The horizontal alignment of the cell.
axis
The value provided in the axis attribute of the HTML tag, i.e. a comma-separated list of related cells.
cellIndex
The position of the cell within the row.
className
The value provided in the class attribute of the HTML tag.
colSpan
The value provided in the colspan attribute of the HTML tag, i.e. the number of columns the cell spans.
dir
The direction of text within the element, i.e. ltr or rtl.
id
The value provided in the id attribute of the HTML tag.
innerHTML
The HTML inside the table cell.
lang
The language code associated with the element.
noWrap
Boolean indicating whether or not the nowrap attribute is set, i.e. whether or not the browser will automatically insert a virtual line-break in the cell.
rowSpan
The value provided in the rowspan attribute of the HTML tag, i.e. how many rows the cell spans.
title
The value provided in the title attribute of the HTML tag.
vAlign
The value provided in the valign attribute of the HTML tag, i.e. the vertical alignment within the cell.
width
The width of the cell.

events

onblur
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onfocus
onmousedown
onmouseout
onmouseover
onmouseup