Click to return to the DHTML, HTML     
contains Method     createControlRange Method     DHTML Methods    
Web Workshop  |  DHTML, HTML & CSS

createCaption Method


Creates an empty CAPTION element in the TABLE.

Syntax

oCaption = TABLE.createCaption()

Return Value

Returns a CAPTION object. If a CAPTION already exists, createCaption() returns the existing element; otherwise, it returns a pointer to the element created. If the method fails, it returns null.

Example

This example uses the createCaption method to create a CAPTION.

myCaption = document.all.myTable.createCaption()

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

TABLE

See Also

createTFoot, createTHead, deleteCaption, deleteTFoot, deleteTHead



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.