1 out of 5 rated this helpful - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.