moveStart method (TextRange)
Moves the start position of the current TextRange object by the specified number of units.
Use the moveEnd method to move the end 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 moveStart method:
Did you find this example helpful?
User Contributed Comments