javascript TBODY deleteRow( )

deleteRow( ) NN 6 IE 4 DOM 1  

deleteRow(index)

  

Removes a tr element nested within the current tbody, tfoot, or thead element. The integer parameter points to the zero-based item in the section's rows collection. To repopulate a table section with new or sorted content, empty the section with iterative calls to the deleteRow( ) method:

while (tBodyReference.rows.length> 0) {
   tBodyReference.deleteRow(0);
}
 
Parameters
 
  • Zero-based integer corresponding to the said numbered tr element in source code order (nested within the current element).
 
Returned Value

None.


2029,Nickname,Homepage or email,Comments here,Add comment