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 all IE all HTML 3.2

Synopsis

<AREA>

End Tag: Forbidden

A MAP element defines a client-side image map that is ultimately associated with an image or other object that occupies space on the page. The only job of the MAP element is to assign a name and a tag context for one or more AREA element definitions. Each AREA element defines how the page should respond to user interaction with a specific geographical region of the image or other object.

A client-side image map area can act like an A element link in that an area can link to a destination or javascript: pseudo-URL and assign another frame or window as the target for loading a new document. In fact, in the scripting document object model, an AREA element is referenced as a link. It is not uncommon to use client-side area maps in a navigation bar occupying a slender frame of a frameset. This allows an artist to be creative with a menu design, while giving the page author the power to turn any segment of a larger image into a special-purpose link.

Example

<MAP NAME="nav">
<AREA COORDS="20,30,120,70" HREF="contents.html" TARGET="display">
</MAP>

Object Model Reference

NN

[window.]document.links[i]

IE

[window.]document.links[i]

[window.]document.all.elementID

Attributes

ACCESSKEY

DIR

LANG

NOHREF

TABINDEX

ALT

HREF

LANGUAGE

SHAPE

TARGET

CLASS

ID

NAME

STYLE

TITLE

COORDS

    

Event Handler Attributes

Handler

NN

IE

HTML

onBlur

n/a

4

4

onClick

4

4

4

onDblClick

n/a ...

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