Deletes the caption element and its contents from the table.
dhtml语法
table.deletecaption()
return value
no return value.
Remarks
If there are multiple captions in the table, the deleteCaption
method deletes only the first caption and all its contents.
DHTML代码范例
This example uses the deleteCaption method to delete the caption element from the table.
document.all.myTable.deleteCaption()
是否符合公共标准
This method is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
更多语法参考
createcaption, createtfoot, createthead, deletetfoot, deleteTHead