Creates an empty caption element in the table.
Syntax
oCaption = TABLE.createCaption()
Return Value
Returns a caption object.
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.
Example
This example uses the createCaption method to create a caption.
myCaption = document.all.myTable.createCaption()
Standards Information
This method is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
See Also
createTFoot, createTHead, deleteCaption, deleteTFoot, deleteTHead