<map name="infographic">
<area
id="mdn-circle"
shape="circle"
coords="130,136,60"
href="https://developer.mozilla.org/#ExampleSection"
alt="MDN" />
</map>
<img
usemap="#infographic"
src="/media/examples/mdn-info.png"
alt="MDN infographic" />HTMLAreaElement: hash property / notebook
HTMLAreaElement: hash property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const area = document.getElementById("mdn-circle");
area.hash; // '#ExampleSection'