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

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.