This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

deleteCaption

Method of dom/HTMLTableElementdom/HTMLTableElement

Syntax

var object = object.deleteCaption();

Return Value

Returns an object of type DOM NodeDOM Node

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

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

document.all.myTable.deleteCaption()

Notes

Remarks

If there are multiple captions in the table, the deleteCaption method deletes only the first caption and all its contents.

Syntax

Standards information

See also

Related pages

Attributions