The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
createCaption method
Creates an empty caption element in the table.
![]() |
Syntax
var retval = table.createCaption();Parameters
This method has no parameters.
Return value
Type: IHTMLTableCaption
Returns a caption object.Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
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
Show:
