The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
caption property
Retrieves the caption object of a table.
Syntax
| JavaScript | |
|---|
Property values
Type: Object
Object that receives the table caption, or null if no caption exists.Address of a pointer to an IHTMLTableCaption interface, or null if no caption exists..Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
Remarks
If a table contains multiple captions, this property returns the first one.
Examples
This example sets the inline style for the caption property.
document.all.myTable.caption.style.color = "blue"
See also
- table
- Reference
- createCaption
- deleteCaption
Show: