Sets or retrieves the text contained within the range.
Syntax
HTML N/A Scripting TextRange.text [ = sTxt ]
Possible Values
sTxt String that specifies the contained text. The property is read/write with no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
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-Win32® platforms. For the latest information about Microsoft® Internet Explorer cross-platform compatibility, see article Q172976 in the Microsoft Knowledge Base.
Applies To
HTML N/A Scripting TextRange