Windows Dev Center

all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

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

HTMLAnchorElement

 

 

Show:
© 2015 Microsoft