deleteRowdeleteRow*
*



Contents  *



Index  *Topic Contents
*Previous Topic: deleteCell
*Next Topic: deleteTFoot

deleteRow

Description

Deletes the specified row (TR) in the table and removes the row from the rows collection. Deleting a row from a TFOOT, TBODY, or THEAD also removes the row from the rows collection for the TABLE. Deleting a row in the TABLE, removes a row from the rows collection for the TBODY. However, when specifying the index for the row to be deleted, you must specify the sectionRowIndex if the row is being deleted from a TBODY, TFOOT or THEAD. You must specify the rowIndex if the row is being deleted from the TABLE.

Syntax

object.deleteRow(index)

Return Value

No return value Index specifies which element in the rows collection to remove.

Remarks

The following example deletes the specified row (TR) in the table,

myNewRow = document.all.myTable.deleteRow()

Applies To

table, TBODY, TFOOT, THEAD

See Also

rows, rowIndex, sectionRowIndex, insertRow


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.