LABELLABEL*
*



Contents  *



Index  *Topic Contents
*Previous Topic: KBD
*Next Topic: LEGEND

LABEL

Description

Specifies a label for a control-like element.

Remarks

Labels cannot be nested.

If the user clicks the label with the mouse, the onclick event goes to the label, then bubbles to the control specified by the htmlFor property. Pressing the access key for the label is the same as clicking the mouse on the label.

Properties

accessKey, className, document, htmlFor, 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

LABEL


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