Table deleteCaption() method
Table object
Definition and Usage
The deleteCaption() method is used to delete the caption element of a table and its contents.
**Note:** To create a new caption in a table, use createCaption() method.
Syntax
tableObject.deleteCaption()
Browser support





All major browsers support the deleteCaption() method
Example
Example
The example below deletes the caption of a table:
| cell 1 | cell 2 |
| cell 3 | cell 4 |
Try it »
Table object