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.

createCaption

Method of dom/HTMLTableElementdom/HTMLTableElement

Syntax

var object = object.createCaption();

Return Value

Returns an object of type DOM NodeDOM Node

IHTMLTableCaption

caption

Examples

This example uses the createCaption method to create a caption.

myCaption = document.all.myTable.createCaption()

Notes

Remarks

If no caption exists, the createCaption method creates an empty table caption, adds it to the table, and returns a pointer to it. If one or more captions already exist, the method returns a pointer to the first one on the list.

Syntax

Standards information

See also

Related pages

Attributions