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
HTMLTableElement = table.createCaption()

Example

js;gutter:false
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

API HTML DOM HTMLTableElement Method NeedsBrowserCompatibility NeedsSpecTable Reference Référence