Area shape Property
Area Object
Definition and Usage
The shape property can set or return the value of the shape attribute of a region.
The shape attribute specifies the shape of a region in an image map.
Syntax
areaObject.shape=
value
The shape attribute can be the following values:
| Value | Description |
|---|---|
| default | Specifies the entire region. |
| rect | Defines a rectangular region. |
| circle | Defines a circular region. |
| poly | Defines a polygon region. |
Browser support





All major browsers support the shape property.
Example
Example
The following example returns the shape of the "Venus" region in the image map:
Shape of the Venus region:
The example above produces the following output:
Shape of the Venus region: circle
Try it »
Area Object