LABEL
Objects Reference

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


LEGEND

Description

Inserts a caption into the box drawn by the FIELDSET element. This element must be the first element in FIELDSET.

Remarks

This element is a block element.

Properties

accessKey, align, className, clientHeight, clientWidth, document, id, innerHTML, innerText, isTextEdit, lang, language, margin offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, padding, parentElement, parentTextEdit, recordNumber, scrollHeight, scrollLeft, scrollTop, scrollWidth, sourceIndex, style, tabIndex, tagName, title

Methods

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

Collections

all, children, filters

Events

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

HTML Element

LEGEND


LI

Description

Denotes one item of a list.

Remarks

This element is a block element.

Properties

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

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

LI

See Also

OL, UL


LINK

Description

Specifies a typed relationship between the document and some other resource. For example, this element is used to link external style sheets to the document.

Remarks

This element can be used only within the HEAD tag.

Properties

className, disabled, document, href, id, parentElement, readyState, rel, sourceIndex, tagName, title

Methods

contains, getAttribute, removeAttribute, setAttribute

Collections

all, children

Events

onerror, onload, onreadystatechange

HTML Element

LINK


LISTING

Description

Renders text in fixed-width type.

Remarks

This element is a block element.

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

LISTING

See Also

XMP


location

Description

Contains information on the current URL.

Remarks

The href property contains the entire URL, and the other properties contain portions of it. Location.href is the default property for the location object. For example, setting location='http://microsoft.com' is equivalent to setting location.href='http://microsoft.com'.

By setting any of the following properties, the browser will initiate an immediate navigation to the newly specified URL.

Properties

hash, host, hostname, href, pathname, port, protocol, search

Methods

assign, reload, replace


MAP

Description

Specifies a collection of hot spots for a client-side image map.

Properties

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

Methods

click, contains, getAttribute, removeAttribute, scrollIntoView, setAttribute

Collections

all, areas, children

Events

onafterupdate, onbeforeupdate, onclick, ondataavailable, ondatasetchanged, ondatasetcomplete, ondblclick, ondragstart, onerrorupdate, onfilterchange,, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onrowenter, onrowexit, onselectstart

HTML Element

MAP


MARQUEE

Description

Enables you to create a scrolling text marquee.

Remarks

The width of MARQUEE defaults to 100%. When MARQUEE is in a TD that does not specify a width, you should explicitly set the width of MARQUEE. The marquee tries to size according to the TD, and the TD tries to size according to the marquee. Without a specific width, the marquee will collapse to a 1-pixel width, and the contents cannot be viewed.

Properties

accessKey, behavior, bgColor, className, clientHeight, clientWidth, dataFld, dataFormatAs, dataSrc, direction, document, height, hspace, id, innerHTML, innerText, isTextEdit, lang, language, loop, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, scrollAmount, scrollDelay, scrollHeight, scrollLeft, scrollTop, scrollWidth, sourceIndex, style, tagName, title, trueSpeed, vspace, width

Methods

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

Collections

all, children, filters

Events

onafterupdate, onblur, onbounce, onclick, ondblclick, ondragstart, onfinish, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onrowenter, onrowexit, onscroll, onselectstart, onstart

HTML Element

MARQUEE


MENU

Description

Specifies that the following block consists of individual items.

Remarks

This element is a block element.

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

MENU


META

Description

Provides support for client pull.

Remarks

This element can be used only within the HEAD tag.

Properties

charset, className, content, document, httpEquiv, id, isTextEdit, lang, name, parentElement, parentTextEdit, sourceIndex, tagName, title, url

Methods

contains, getAttribute, removeAttribute, setAttribute

Collections

all, children

HTML Element

META


navigator

Description

Contains information about the Web browser.

Properties

appCodeName, appMinorVersion, appName, appVersion, browserLanguage, connectionSpeed, cookieEnabled, cpuClass, onLine, platform, systemLanguage, userAgent userLanguage, userProfile

Methods

javaEnabled, taintEnabled

Collections

mimeTypes, plugins

Applies To

window


NEXTID

Description

Serves as a parameter to be read and generated by text editing software to create unique identifiers.

Remarks

This element can be used only within the HEAD tag.

Properties

className, document, id, isTextEdit, language, parentElement, parentTextEdit, sourceIndex, tagName, title

Methods

contains, getAttribute, removeAttribute, setAttribute

HTML Element

NEXTID

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