Name

BUTTON — NN n/a IE 4 DOM 1

Synopsis

The BUTTON object reflects the BUTTON element. See the discussion of the BUTTON element in Chapter 8 to see how it differs from the INPUT element of type button, covered next.

HTML Equivalent

<BUTTON>

Object Model Reference

IE

[window.]document.all. elementID

Properties

accessKey

dataSrc

lang

outerHTML

sourceIndex

className

disabled

language

outerText

status

clientHeight

document

name

parentElement

style

clientLeft

form

offsetHeight

parentTextEdit

tabIndex

clientTop

id

offsetLeft

scrollHeight

tagName

clientWidth

innerHTML

offsetParent

scrollLeft

title

dataFld

innerText

offsetTop

scrollTop

type

dataFormatAs

isTextEdit

offsetWidth

scrollWidth

value

Methods

blur( )

focus( )

removeAttribute( )

click( )

getAttribute( )

scrollIntoView( )

contains( )

insertAdjacentHTML( )

setAttribute( )

createTextRange( )

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

onclick

n/a

4

n/a

ondblclick

n/a

4

n/a

ondragstart

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

n/a

4

n/a

onmousemove

n/a

4

n/a

onmouseout ...

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.