text property
Sets or retrieves the text content of an HTMLAnchorElement.
This property is read/write.
![]() |
Syntax
| JavaScript |
|---|
object.text = sText sText = object.text |
Property values
Type: DOMString
A string that specifies or receives the text content.
Remarks
This property returns the same value as the textContent property.
See also
Show:
