Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Table deleteCaption() method

Table deleteCaption() method

Table Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the deleteCaption() method


Example

Example

The example below deletes the caption of a table:

Runoob Tutorial(runoob.com)

    

        

        

    

    

        

        

    

This is a table caption
cell 1 cell 2
cell 3 cell 4

Try it »


Table Object Reference Table object