WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM TableRow Object


TableRow Object

The TableRow object speaks to a HTML <tr> element.

Access a TableRow Object

You can get to a <tr> component by utilizing getElementById():

var x = document.getElementById("myTr"); Try it

Tip: You can likewise get to a <tr> component via seeking through the rows gathering of a table.

Create a TableRow Object

You can make a <tr> component by utilizing the document.createElement() method:

var x = document.createElement("TR");

TableRow Object Collections

Collection Description
cells Returns a gathering of all <td> or <th> components in a table row

TableRow Object Properties

Property Description
align Not upheld in HTML5. Use style.textAlign instead.
Sets or returns the flat arrangement of the substance inside a table row
bgColor Not bolstered in HTML5. Use style.backgroundColor instead.
Sets or returns the foundation shade of a table row
ch Not upheld in HTML5.
Sets or returns an arrangement character for cells in a table row
chOff Not bolstered in HTML5.
Sets or returns the even balance of the ch property
height Not bolstered in HTML5. Use style.height instead.
Sets or returns the stature of a table line.
rowIndex Returns the situation of a column in the rows gathering of a table
sectionRowIndex Returns the situation of a line in the rows gathering of a tbody, thead, or tfoot
vAlign Not upheld in HTML5. Use style.verticalAlign instead.
Sets or returns the vertical arrangement of the substance inside a table row

TableRow Object Methods

Method Description
deleteCell() Deletes a cell from the present table row
insertCell() Inserts a cell into the present table row