deleteCaption

HTML (DHTML)

deleteCaption Method

Internet Development Index

Deletes the caption element and its contents from the table.

Syntax

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.

Example

This example uses the deleteCaption method to delete the caption element from the table.

document.all.myTable.deleteCaption()

Standards Information

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

Applies To

TABLE

See Also

createCaption, createTFoot, createTHead, deleteTFoot, deleteTHead