A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/TextRange/moveStart below:

moveStart ยท WebPlatform Docs

moveStart Summary

Changes the start position of the range.

Method of dom/TextRangedom/TextRange

Syntax
var result = textRange.moveStart();
Parameters Unit
Data-type
BSTR

String that specifies the units to move, using one of the following values:

character - Moves one or more characters.

word - Moves one or more words. A word is a collection of characters terminated by a space or some other white-space character, such as a tab.

sentence - Moves one or more sentences. A sentence is a collection of words terminated by a punctuation character, such as a period.

textedit - Moves to the start or end of the original range.

Count
Data-type
Number

Integer that specifies the number of units to move. This can be positive or negative. The default is 1.

Return Value

Returns an object of type NumberNumber

Integer that returns the number of units moved.

Notes Remarks Syntax Standards information

There are no standards that apply here.

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4