A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/de/docs/Web/API/HTMLMapElement/areas below:

HTMLMapElement: areas-Eigenschaft - Web-APIs | MDN

HTMLMapElement: areas-Eigenschaft

Baseline Widely available

Die areas-Schreibschutz-Eigenschaft der Schnittstelle HTMLMapElement gibt eine Sammlung von <area>-Elementen zurück, die mit dem <map>-Element verbunden sind.

Wert

Ein HTMLCollection-Objekt von HTMLAreaElement-Elementen.

Beispiel
<map id="image-map">
  <area shape="circle" coords="50,50,35" alt="left arrow" />
  <area shape="circle" coords="150,50,35" alt="right arrow" />
</map>
<img
  usemap="#image-map"
  src="left-right-arrow.png"
  alt="left right arrow image" />
<output></output>
output {
  display: block;
}
const mapElement = document.getElementById("image-map");
const outputElement = document.querySelector("output");

for (const area of mapElement.areas) {
  area.addEventListener("click", (event) => {
    outputElement.textContent = `You clicked on the ${area.alt} area.\n\n`;
  });
}
Ergebnisse Spezifikationen Browser-Kompatibilität Siehe auch MDN-Feedback-Box War diese Übersetzung hilfreich?

Diese Seite wurde automatisch aus dem Englischen übersetzt.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4