text property
Sets or retrieves the text contained within the range.
Syntax
| JavaScript | |
|---|
Property values
Type: String
the contained text.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
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
Show: