Name
HTMLTableElement.createCaption( ) — get or create a <caption>
Availability
DOM Level 1 HTML
Synopsis
HTMLElement createCaption( );
Returns
An HTMLTableCaptionElement object representing the
<caption>
element for this table. If the
table already has a caption, this method simply returns it. If the
table does not have an existing <caption>
,
this method creates a new (empty) one and inserts it into the table
before returning it.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.