HTMLAreaElement: ping-Eigenschaft
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die ping
-Eigenschaft des HTMLAreaElement
-Interfaces ist eine durch Leerzeichen getrennte Liste von URLs. Wenn der Link gefolgt wird, sendet der Browser POST
-Anfragen mit dem Körper PING an die URLs.
Sie spiegelt das ping
-Attribut des <area>
-Elements wider.
Hinweis: Diese Eigenschaft ist in Firefox nicht wirksam und ihre Verwendung kann aufgrund von Datenschutz- und Sicherheitsbedenken eingeschränkt sein.
Beispiel
html
<map>
<area
href="https://example.com"
ping="https://example-tracking.com https://example-analytics.com"
alt="example" />
</map>
js
const areaCollection = document.getElementsByTagName("map")[0].areas;
console.log(areaCollection[0].ping); // Output: "https://example-tracking.com https://example-analytics.com"
Spezifikationen
Specification |
---|
HTML # dom-area-ping |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ping |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Siehe auch
HTMLAnchorElement.ping
-Eigenschaft