O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required