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

checkbox — NN 2 IE 3 DOM 1

Synopsis

The checkbox object is a form control generated with an INPUT element whose TYPE attribute is set to "checkbox".

HTML Equivalent

<INPUT TYPE="checkbox">

Object Model Reference

NN

[window.]document. formName . elementName

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

IE

[window.]document. formName . elementName

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

[window.]document.all. elementID

Properties

accessKey

document

name

outerText

style

checked

form

offsetHeight

parentElement

tabIndex

className

id

offsetLeft

parentTextEdit

tagName

dataFld

indeterminate

offsetParent

recordNumber

title

dataSrc

isTextEdit

offsetTop

sourceIndex

type

defaultChecked

lang

offsetWidth

status

value

disabled

language

outerHTML

  

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

handleEvent( )

scrollIntoView( )

contains( )

insertAdjacentHTML( )

setAttribute( )

focus( )

insertAdjacentText( )

 

Collections/Arrays

all[]

children[]

filters[]

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

3

4

n/a

ondblclick

n/a

4

n/a

onerrorupdate

n/a

4

n/a

onfilterchange

n/a

4

n/a

onfocus

n/a

4

n/a

onhelp

n/a

4

n/a

onkeydown

n/a

4

n/a

onkeypress

n/a

4

n/a

onkeyup

n/a

4

n/a

onmousedown ...

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