TBODY
Objects Reference

TBODY

Description

Designates rows as the body of the table.

Remarks

This element is exposed for all tables, even if the table did not explicitly define a TBODY element.

This element is a block element.

Properties

align, bgColor, className, document, id, isTextEdit, lang, language, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, parentElement, parentTextEdit, sourceIndex, style, tagName, title, vAlign

Methods

click, contains, getAttribute, removeAttribute, scrollIntoView, setAttribute

Collections

all, children, filters

Events

onclick, ondblclick, ondragstart, onfilterchange, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselectstart

HTML Element

TBODY


TD

Description

Specifies a cell in a table.

Remarks

This element is a block element.

Properties

align, background, bgColor, borderColor, borderColorDark, borderColorLight, className, clientHeight, clientWidth, colSpan, document, height, id, isTextEdit, lang, language, noWrap, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, parentElement, parentTextEdit, rowSpan, sourceIndex, style, tagName, title, vAlign, width

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, setAttribute

Collections

all, children, filters

Events

onafterupdate, onbeforeupdate, onblur, onclick, ondblclick, ondragstart, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onrowenter, onrowexit, onselectstart

HTML Element

TD

See Also

TABLE, TH, TR


TEXTAREA

Description

Specifies a multiline text input control.

Remarks

The default font is fixed pitch. You can also set the overflow CSS attribute to "hidden" to remove the scroll bars from the TEXTAREA.


<TEXTAREA STYLE="overflow:hidden" ID=txtComments>
   The patient is in stable condition after suffering an attack of 
   the insatiable munchies.
</TEXTAREA>

Properties

accessKey, className, clientHeight, clientWidth, cols, dataFld, dataSrc, disabled, document, form, id, innerText, isTextEdit, lang, language, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerText, parentElement, parentTextEdit, readOnly, rows, scrollHeight, scrollLeft, scrollTop, scrollWidth, sourceIndex, status, style, tabIndex, tagName, title, type, value, wrap

Methods

blur, click, contains, createTextRange, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondblclick, ondragstart, onerrorupdate, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onrowenter, onrowexit, onscroll, onselect, onselectstart

HTML Element

TEXTAREA

See Also

INPUT


TextRange

Description

Represents text in an HTML element.

Remarks

You can use this object to retrieve and modify text in an element, to locate specific strings in the text, and to carry out commands that affect the appearance of the text.

You can retrieve a text range object by applying the createTextRange method to a BODY, BUTTON, or TEXTAREA element or an INPUT element having text type. You can modify the extent of the text range by moving its start and end positions with methods such as move, moveToElementText, and findText. Within the text range, you can retrieve and modify plain text or HTML text. These forms of text are identical except that HTML text includes HTML tags; plain text does not.

This feature might not be available on non-Win32® platforms. See article Q172976 in the Microsoft® Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.

Example

The following JScript example changes the text of a BUTTON element to "Clicked".

var b = document.all.tags("BUTTON");
if (b!=null) {
    var r = b[0].createTextRange();
    if (r != null) {
        r.text = "Clicked";
    }
}

Properties

htmlText, text

Methods

collapse, compareEndPoints, duplicate, execCommand, expand, findText, getBookmark, inRange, isEqual, move, moveEnd, moveStart, moveToBookmark, moveToElementText, moveToPoint, parentElement, pasteHTML, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue, scrollIntoView, select, setEndPoint

See Also

createTextRange


TFOOT

Description

Designates rows as the table's footer.

Remarks

This element is a block element.

Properties

align, bgColor, className, document, id, isTextEdit, lang, language, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, parentElement, parentTextEdit, sourceIndex, style, tagName, title, vAlign

Methods

click, contains, getAttribute, removeAttribute, scrollIntoView, setAttribute

Collections

all, children, filters

Events

onclick, ondblclick, ondragstart, onfilterchange, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup , onselectstart

HTML Element

TFOOT


TH

Description

Specifies a header column. Header columns are centered within the cell and are bold.

Remarks

This element is a block element.

Properties

align, background, bgColor, borderColor, borderColorDark, borderColorLight, className, colSpan, document, id, isTextEdit, lang, language, noWrap, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, parentElement, parentTextEdit, rowSpan, sourceIndex, style, tagName, title, vAlign

Methods

click, contains, getAttribute, removeAttribute, scrollIntoView, setAttribute

Collections

all, children

Events

onclick, ondblclick, ondragstart, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselectstart

HTML Element

TH

See Also

TD, TR


THEAD

Description

Designates rows as the table's header.

Remarks

This element is a block element.

Properties

align, bgColor, className, document, id, isTextEdit, lang, language, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, parentElement, parentTextEdit, sourceIndex, style, tagName, title, vAlign

Methods

click, contains, getAttribute, removeAttribute, scrollIntoView, setAttribute

Collections

all, children, filters

Events

onclick, ondblclick, ondragstart, onfilterchange, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselectstart

HTML Element

THEAD


TITLE

Description

Identifies the contents of the document in a global context.

Remarks

This element can be used only within the HEAD tag.

This element is a block element.

Properties

className, document, id, isTextEdit, lang parentElement, parentTextEdit, sourceIndex, tagName, text, title

Methods

contains, getAttribute, removeAttribute, setAttribute

Collections

all, children, filters

HTML Element

TITLE


TR

Description

Specifies a row in a table.

Remarks

Within a row, the following tags are valid:

This element is a block element.

Properties

align, bgColor, borderColor, borderColorDark, borderColorLight, className, document, id, isTextEdit, lang, language, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, parentElement, parentTextEdit, sourceIndex, style, tagName, title, vAlign

Methods

blur, click, contains, focus, getAttribute, removeAttribute, scrollIntoView, setAttribute

Collections

all, cells, children, filters

Events

onafterupdate, onbeforeupdate, onblur, onclick, ondblclick, ondragstart, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onrowenter, onrowexit, onselectstart

HTML Element

TR

See Also

TABLE, TD, TH


TT

Description

Renders text in fixed-width type.

Properties

className, document, id, innerHTML, innerText, isTextEdit, lang, language, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, sourceIndex, style, tagName, title

Methods

click, contains, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, setAttribute

Collections

all, children, filters

Events

onclick, ondblclick, ondragstart, onfilterchange, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselectstart

HTML Element

TT

See Also

XMP

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.