moveEnd method (TextRange)
Moves the end position of the current TextRange object by the specified number of units.
Use the moveStart method to move the start position.
You can find the related objects in the Supported by objects section below.
Required. String that specifies the type of unit to move by.
One of the following values:
|Optional. Integer that specifies the number of units to move by. Default is 1. Negative and positive values are also allowed.|
Integer. Returns the number of units moved.
Example HTML code 1:
This example illustrates the use of the moveEnd method:
Did you find this example helpful?
User Contributed Comments