HTML <a> ping attribute
Definition and Usage
ping
This attribute specifies a list of URLs, and if the user clicks on a hyperlink, these URLs will be notified.
When the user clicks on a hyperlink,ping
The attribute sends a short HTTP POST request to the specified URL.
This attribute is very useful for monitoring/tracking.
Example
Notify codew3c.com/trackpings when the user clicks on the link:
<a href="https://www.codew3c.com/html" ping="https://www.codew3c.com/trackpings">
Syntax
<a ping="URL">
Attribute Value
Value | Description |
---|---|
URL |
Specify the URL to be notified when the user clicks on a hyperlink. It must be a space-separated list consisting of one or more valid URLs. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | Not Supported | Supported | Not Supported | Supported |