Sets or retrieves the text contained within the range.
Syntax
TextRange.text [ = sTxt ]
Possible Values
sTxt | String that
specifies or receives the contained text. |
The property is read/write.
The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About 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-Microsoft® Win32® platforms.
Standards Information
This property is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
See Also
htmlText