HTMLAreaElement: shape property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("HTML DOM")}}
The **shape** property of the {{DOMxRef("HTMLAreaElement")}} interface specifies the shape of an image map area. It reflects the {{htmlelement("area")}} element's [shape](/en-US/docs/Web/HTML/Reference/Elements/area#shape) attribute.
Value
A string; rect, circle, or poly.
Examples
js
const areaElement = document.getElementById("imageMapArea");
console.log(areaElement.shape);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{DOMXref("HTMLAreaElement.coords")}}
- {{DOMXref("HTMLAreaElement.alt")}}
- {{DOMXref("HTMLMapElement")}}
- {{HTMLElement("area")}}
- {{HTMLElement("map")}}
- {{HTMLElement("a")}}