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

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 ...

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