Name

button — NN 2 IE 3 DOM 1

Synopsis

The button object is a form control generated with an INPUT element whose TYPE attribute is set to "button". This element is similar to, but differs from, the BUTTON element. For details on the distinctions, see the BUTTON HTML element description in Chapter 8.

HTML Equivalent

<INPUT TYPE="button">

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

form

offsetHeight

outerText

tabIndex

className

id

offsetLeft

parentElement

tagName

dataFld

isTextEdit

offsetParent

parentTextEdit

title

dataSrc

lang

offsetTop

recordNumber

type

disabled

language

offsetWidth

sourceIndex

value

document

name

outerHTML

style

 

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

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.