English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The ping attribute is triggered when the user clicks on the href link, which sends a ping request for tracking
when the user clicks on oldtoolbag.com/notify oldtoolbag.com/trackpings:
<a href="https://www.oldtoolbag.com/html" ping="https://www.oldtoolbag.com/trackpings">
The ping attribute specifies the list of URLs that will be notified if the user follows the hyperlink.
When the user clicks on a hyperlink, the ping attribute will send a brief HTTP POST request to the specified URL.
This attribute is for monitoring/Tracking is very useful.
The numbers in the table specify the first browser version that fully supports this attribute.
Attribute | |||||
---|---|---|---|---|---|
ping | Yes | No | Yes | No | Yes |
The ping attribute is an HTML5A new attribute for the <a> tag in HTML.
Value | Description |
---|---|
URL | Specify if the URL of the hyperlink followed by the user should be notified. It must be a space-separated list of one or more valid URLs. |