| ★ wanayoo — archive 1999 http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/deleteRow.asp | Nouvelle recherche | Portail wanayoo |
![]() |
![]() |
All Products | Support | Search | microsoft.com Home |
![]() | ||
| HOME | VOICES | LIBRARIES | COMMUNITY | DOWNLOADS | SITE GUIDE | SEARCH MSDN | ||
Deletes the specified row (TR) in the TABLE, and removes the row from the rows collection.
Syntax
object.deleteRow([iRowIndex])
Parameters
iRowIndex Optional. Integer that specifies the row to delete.
Return Value
No return value.
Remarks
If you delete a row from a TFOOT, TBODY, or THEAD, you also remove the row from the rows collection for the TABLE. Deleting a row in the TABLE also removes a row from the rows collection for the TBODY.
If you delete a row from a TBODY, TFOOT, or THEAD, iRowIndex must contain the sectionRowIndex of the TR. When deleting a row from the TABLE, iRowIndex must contain the rowIndex of the TR.
Example
This example uses the deleteRow method to delete the specified row (TR) in the TABLE.
myNewRow = document.all.myTable.deleteRow()
Applies To
See Also