HBCMS更多的中文手册参考:

deleteRow Method

DHTML文档教程

Removes the specified row (tr) from the element and from the rows collection.

dhtml语法

object.deleterow( [irowindex])

parameters

iRowIndex Optional. Integerthat specifies the zero-based position in the rows collection of the row to remove.

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 tFoot, tBody, 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.

DHTML代码范例

This example uses the deleteRow method to delete the specified row (tr) in the table.

document.all.myTable.deleteRow()

是否符合公共标准

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

TABLE, TBODY, TFOOT, THEAD

更多语法参考

insertrow, rowindex, rows, sectionRowIndex