createTBody method
Creates an empty tBody element in the table.
![]() |
Syntax
var retval = table.createTBody();Parameters
This method has no parameters.
Return value
Type: Object
Returns the tBody element object if successful, ornull 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
Show:
