Name

coords — NN n/a IE 4 DOM 1

Synopsis

Read/Write

Defines the outline of the area to be associated with a particular link or scripted action. Coordinate values are entered as a comma-delimited list. If hotspots of two areas should overlap, the area that is defined earlier in the code takes precedence.

Example

document.all.mapArea2.coords = "25, 5, 50, 70"

Value

Each coordinate is a length value, but the number of coordinates and their order depend on the shape specified by the SHAPE attribute, which may optionally be associated with the element. For SHAPE="rect", there are four coordinates (left, top, right, bottom); for SHAPE="circle" there are three coordinates (center-x, center-y, radius); for SHAPE="poly" there are two coordinate values for each point that defines the shape of the polygon.

Default

None.

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.