expand method (TextRange)
Expands the contents of the TextRange from the insertion point by a character, sentence or word.
If you need to move only the start or end point of a TextRange, use the moveStart and moveEnd methods.
You can find the related objects in the Supported by objects section below.
Required. String that specifies the type of unit to expand by.
One of the following values:
Boolean. One of the following values:
|The range was not expanded.|
|The range was successfully expanded.|
Example HTML code 1:
This example illustrates the use of the expand method:
Did you find this example helpful?
User Contributed Comments