SELECTSELECT*
*Contents  *Index  *Topic Contents
*Previous Topic: SCRIPT
*Next Topic: selection

SELECT

Description

Denotes a list box or drop-down list.

Examples

The following JScript example adds a new option to the end of an existing SELECT list.

var oOption = document.createElement("OPTION");
oOption.text="Apples";
oOption.value="5";
document.all.MyList.add(oOption);

Properties

accessKey, className, dataFld, dataSrc, disabled, document, form, id, isTextEdit, lang, language, length, multiple, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, recordNumber, selectedIndex, size, sourceIndex, style, tabIndex, tagName, type, value

Methods

add, blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, item, remove, removeAttribute, scrollIntoView, setAttribute, tags

Collections

all, children, filters, options

Events

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

HTML Element

SELECT

See Also

OPTION


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