tbodiestbodies*
*Contents  *Index  *Topic Contents
*Previous Topic: styleSheets
*Next Topic: HTML References

tbodies

Description

Retrieves a collection of all TBODY elements in the table. Elements in this collection are in HTML source order.

Syntax

object.tbodies(index)

ParameterDescription
objectThe table object.
indexAn integer or a string specifying the index value of the element to retrieve. Integer indexes are zero-based, meaning the first element in the collection has index 0. A string index is valid if the string is an identifier of at least one element in the scope of the collection.

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 subsequently be referenced by ordinal position.

Example

The following example puts text in the first cell in the first row of the first TBODY element in the TABLE. For each TABLE, an initial TBODY element is synthesized in the HTML tree even if one does not exist in the HTML source.

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

Applies To

table

Property

length

Methods

item, tags


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.