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