createCaption method (table)
If captions already exists on the current table, the createCaption method returns the first of them and does not create a new one. Note: a table element may have more than one caption in Internet Explorer and Opera, and at most one caption in Firefox, Google Chrome and Safari. caption is to use the createElement method.
You can find the related objects in the Supported by objects section below.
Returns the newly created or an existing caption element.
Example HTML code 1:
This example illustrates the use of the createCaption method:
Did you find this example helpful?
User Contributed Comments