HTMLTableElement.caption
The HTMLTableElement.caption
property represents the
table caption. If no caption element is associated with the table, this property is
null
.
Syntax
var string = tableElement.caption;
Example
if (table.caption) {
// Do something with the caption
}
Specifications
Specification |
---|
HTML Standard # dom-table-caption-dev |
Browser compatibility
BCD tables only load in the browser
See also
- The interface implementing this property:
HTMLTableElement
.