Windows Dev Center

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:
© 2015 Microsoft