Export (0) Print
Expand All

createCaption method

Creates an empty caption element in the table.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

 

Syntax

var retval = table.createCaption();

Parameters

This method has no parameters.

Return value

Type: IHTMLTableCaption

Returns a caption object.

Standards information

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.

Examples

This example uses the createCaption method to create a caption.


myCaption = document.all.myTable.createCaption()

See also

table
Reference
createTFoot
createTHead
deleteCaption
deleteTFoot
deleteTHead

 

 

Show:
© 2014 Microsoft