<map name="image-map">
<area shape="circle" coords="15,15,5" />
</map>HTMLMapElement: name property / notebook
HTMLMapElement: name property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const mapElement = document.getElementsByName("image-map")[0];
console.log(mapElement.name); // output: "image-map"