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
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
See also
Related pages
- tabletable
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]