Click to return to the DHTML, HTML     
TARGET Attribute | target...     TEXT Attribute | text Pro...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

text Property


Sets or retrieves the text contained within the range.

Syntax

HTMLN/A
ScriptingTextRange.text [ = sTxt ]

Possible Values

sTxtString 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 Non-MSDN link in the Microsoft Knowledge Base.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting TextRange


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.