EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

createCaption method

Creates an empty caption element in the table.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

 

Syntax

var retval = table.createCaption();

Parameters

This method has no parameters.

Return value

Type: IHTMLTableCaption

Returns a caption object.

Standards information

Remarks

If no caption exists, the createCaption method creates an empty table caption, adds it to the table, and returns a pointer to it. If one or more captions already exist, the method returns a pointer to the first one on the list.

Examples

This example uses the createCaption method to create a caption.


myCaption = document.all.myTable.createCaption()

See also

table
Reference
createTFoot
createTHead
deleteCaption
deleteTFoot
deleteTHead

 

 

Afficher:
© 2014 Microsoft