HasPing
API reference › HTML Attribute › HasPing
Used by 1 type
Provides an immutable API for the ping attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#ping.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
ping() | Sets the ping attribute. | HasPing |
Method details
Section titled “Method details”ping()
Section titled “ping() ”public function ping(string|Stringable|UnitEnum|null $value): staticSets the ping attribute.
Defines the space-separated URL list for ping tracking.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|Stringable|UnitEnum| | Ping URL list, or null to remove the attribute. |
Returns
static: New instance with the updated ping attribute.