Name

SELECT — NN 2 IE 3 DOM 1

Synopsis

The SELECT object reflects the SELECT element. This element is a form control that contains OPTION elements. Note that the innerHTML and innerText properties are not available on the Macintosh version of Internet Explorer 4.

HTML Equivalent

<SELECT>

Object Model Reference

NN

[window.]document. formName . selectName

[window.]document.forms[i].elements[i]

IE

[window.]document. formName . selectName

[window.]document.forms[i].elements[i]

[window.]document.all. elementID

Properties

accessKey

id

multiple

outerHTML

style

className

innerHTML

name

outerText

tabIndex

dataFld

innerText

offsetHeight

parentElement

tagName

dataSrc

isTextEdit

offsetLeft

parentTextEdit

title

disabled

lang

offsetParent

recordNumber

type

document

language

offsetTop

selectedIndex

value

form

length

offsetWidth

sourceIndex

 

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

focus( )

  

Collections/Arrays

all[]

children[]

filters[]

options[]

tags[]

Event Handler Properties

Handler

NN

IE

DOM

onafterupdate

n/a

4

n/a

onbeforeupdate

n/a

4

n/a

onblur

n/a

4

n/a

onchange

n/a

4

n/a

onclick

n/a

4

n/a

ondblclick

n/a

4

n/a

ondragstart

n/a

4

n/a

onerrorupdate

n/a

4

n/a

onfilterchange

n/a

4

n/a

onhelp

n/a

4

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.