Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
1 out of 6 rated this helpful - Rate this topic

tBodies property

Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

Syntax

JavaScript

p = object.tBodies

Property values

Type: IHTMLElementCollection

Array of tBody objects.

Standards information

Remarks

This collection can be indexed by name (ID). If duplicate names are found, a collection of those named items is returned. Collections of duplicate names must be referenced subsequently by ordinal position.

Examples

This example shows how to put text in the first cell in the first row of the first tBody object in the table. For each table, an initial tBody object is synthesized in the HTML tree even if a tBody element does not exist in the HTML source.


document.all.oTable.tBodies[0].rows[0].cells[0].innerText = 
   "Text for the first table cell";

See also

table

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.