HTML DOM TableRow Object

« Previous Chapter Next Reference »

TableRow Object

The TableRow object represents an HTML table row.

For each <tr> tag in an HTML document, a TableRow object is created.

TableRow Object Collections

W3C: W3C Standard.

Collection Description W3C
cells[] Returns an array containing each cell in the table row Yes

TableRow Object Properties

Property Description W3C
align Sets or returns the horizontal alignment of data within a table row Yes
ch Sets or returns the alignment character for cells in a table row Yes
chOff Sets or returns the offset of alignment character for the cells in a table row Yes
rowIndex Returns the position of a row in the table's rows collection Yes
sectionRowIndex Returns the position of a row in the tBody, tHead, or tFoot rows collection Yes
valign Sets or returns the vertically alignment of data within a table row Yes

TableRow Object Methods

Method Description W3C
deleteCell() Deletes a cell in a table row Yes
insertCell() Inserts a cell in a table row Yes

Standard Properties, Methods, and Events

The TableRow object also supports the standard properties, methods, and events.


« Previous Chapter Next Reference »

Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!