Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

text property

Sets or retrieves the text contained within the range.

Syntax

JavaScript

p = object.text

 

Property values

Type: String

the contained text.

Standards information

Remarks

The text formats within the current context of the document. You cannot set this property while the document is loading. Wait for the onload event before attempting to set this property.

This feature might not be available on non-Microsoft Win32 platforms.

See also

TextRange
htmlText

 

 

Show:
© 2017 Microsoft