Javascript Reference
Categories: TABLE

javascript TABLE createTFoot( ), createTHead( ), deleteTFoot( ), deleteTHead( )

@April 13, 2009, 2:06 a.m.
createTFoot( ), createTHead( ), deleteTFoot( ), deleteTHead( ) Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

  

Add or remove a thead or tfoot element nested within the current table element. If no head or foot table section exists, the creation method produces an empty element, which your scripts must then populate with rows (through thead.insertRow( ) and tfoot.insertRow( ) methods). If the desired table section exists, the method is essentially ignored, and returns a reference to the existing thead or tfoot element.

 
Parameters

None.

 
Returned Value

Reference to newly created element (for createTFoot( ) and createTHead( )); Nothing for deleteTHead( ) and deleteTFoot( ).


Powered by Linode.