caption Property

Internet Development Index

Retrieves the caption object of the table.

Syntax

HTMLN/A
Scripting[ oCaption = ] TABLE.caption

Possible Values

oCaptionString that receives the table caption, or the following value:
nullDefault. No caption exists for the table.

The property is read-only. The property has a default value of null.

Example

This example sets the inline style for the caption property.

document.all.myTable.caption.style.color = "blue" 

Standards Information

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

Applies To

TABLE