javascript TABLE caption

captionNN 6 IE 4(Win)/5(Mac) DOM 1  

Read-only  

Returns a reference to a caption element nested inside the table. From this reference you can access properties and methods of the caption object. In Netscape 6, you can create a new caption element, and assign that new element's reference to the caption property of a table, making the property read/write in that browser (although you really should be using the createCaption( ) method). For all browsers, however, you can modify properties of the caption object returned by the caption property.

 
Example
 
var capText = document.getElementById("myTable").caption.innerHTML;
 
Value

Object reference.

 
Default

None.


1987,Nickname,Homepage or email,Comments here,Add comment