HTMLTableElement.createCaption()
The HTMLTableElement.createCaption()
method returns the caption for the table. If no caption element exists on the table, this method creates it, then returns it.
Syntax
JavaScript
Copy Code
HTMLTableElement = table.createCaption()
Example
js;gutter:false
Copy Code
mycap = mytable.createCaption();
Specification
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/htmltableelement/createcaption