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

AREA — NN 3 IE 4 DOM 1

Synopsis

The AREA object reflects the AREA element, which defines the shape, coordinates, and destination of a clickable region of a client-side image map. Navigator and Internet Explorer (for compatibility with Navigator) treat an AREA object as a member of the links collection, since an AREA object behaves much like a link, but for a segment of an image.

HTML Equivalent

<AREA>

Object Model Reference

NN

[window.]document.links[i]

IE

[window.]document.links[i]

[window.]document.all. elementID

Properties

alt

href

offsetLeft

parentTextEdit

sourceIndex

className

id

offsetParent

pathname

style

coords

isTextEdit

offsetTop

port

tabIndex

document

lang

offsetWidth

protocol

tagName

hash

language

outerHTML

search

target

host

noHref

outerText

shape

title

hostname

offsetHeight

parentElement

  

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

focus( )

  

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

4

3

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

onerrorupdate

n/a

4

n/a

onfocus

n/a

4

n/a

onhelp ...

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