createTBody method

Creates an empty tBody element in the table.

Internet Explorer 9

 

Syntax

var retval = table.createTBody();

Parameters

This method has no parameters.

Return value

Type: Object

Returns the tBody element object if successful, or null otherwise.

Standards information

There are no standards that apply here.

Remarks

If a tBody already exists, createTBody returns the existing element. Otherwise, it returns a pointer to the element created.

Examples

This example uses the createTBody method to create a table body.


myTBody = document.all.myTable.createTBody() 

See also

table
createTHead

 

 

Show:
© 2014 Microsoft