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

IMG — NN 3 IE 4 DOM 1

Synopsis

The IMG object reflects the IMG element.

HTML Equivalent

<IMG>

Object Model Reference

NN

[window.]document. imageName

[window.]document.images[i]

IE

[window.]document. imageName

[window.]document.images[i]

[window.]document.all. elementID

Properties

align

height

lowsrc

outerText

style

alt

href

name

parentElement

tagName

border

hspace

offsetHeight

parentTextEdit

title

className

id

offsetLeft

prototype

useMap

complete

isMap

offsetParent

readyState

vspace

dataFld

isTextEdit

offsetTop

sourceIndex

width

dataSrc

lang

offsetWidth

src

x

document

language

outerHTML

start

y

dynsrc

loop

   

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

focus( )

  

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onabort

3

4

n/a

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

ondataavailable

n/a

4

n/a

ondatasetchanged

n/a

4

n/a

ondatasetcomplete

n/a

4

n/a

ondblclick

n/a

4

n/a

ondragstart

n/a

4

n/a

onerror

3

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

onload

3

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