Javascript Reference
Categories: TABLE

javascript TABLE createCaption( ), deleteCaption( )

@July 30, 2008, 12:43 p.m.
createCaption( ), deleteCaption( ) Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Add or remove a caption element nested within the current table element. If no caption exists, the creation method produces an empty element, which your scripts must then populate with caption text (through common element content modification techniques). If a caption exists, the method is essentially ignored, and returns a reference to the existing caption element.

 
Parameters

None.

 
Returned Value

Reference to new caption element (for createCaption( )); nothing for deleteCaption( ).


Powered by Linode.