Search DaTutorials:  
HOME
DHTML Reference
Introduction
Reference

createCaption Method


Creates an empty caption element in the table.

Syntax

oCaption = TABLE.createCaption()

Return Value

ReturnsĀ a caption object.

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.

Example

This example uses the createCaption method to create a caption.

myCaption = document.all.myTable.createCaption()

Standards Information

method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

TABLE

See Also

createTFoot, createTHead, deleteCaption, deleteTFoot, deleteTHead

     Advertising | Internet Advertising | Internet Advertising | Free Advertising | Online Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos