Contents Index Topic Contents | ||
Previous Topic: contains Next Topic: createElement |
createCaption
Description
Creates an empty CAPTION element in the TABLE. If a CAPTION already exists, createCaption() returns the existing element, otherwise, it returns a pointer to the element created.
Syntax
object.createCaption()
Return Value
Returns the CAPTION element object. If the method fails, it returns null.
Remarks
The following example creates a caption,
myCaption = document.all.myTable.createCaption()Applies To
table
See Also
createTFoot, createTHead, deleteTHead, deleteTFoot, deleteCaption
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.