HBCMS更多的中文手册参考:

deleteCell Method

DHTML文档教程

Removes the specified cell (td) from the table row, as well as from the cells collection.

dhtml语法

tr.deletecell( [iindex])

parameters

iIndex Optional. Integerthat specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.

Return Value

No return value.

DHTML代码范例

This example uses the deleteCell method to delete the last cell in the first row of the table.

document.all.myTable.rows[0].deleteCell() 

是否符合公共标准

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

Applies To

TR

更多语法参考

deleterow, insertCell