-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "AbstractRange: startOffset プロパティ" | ||
short-title: startOffset | ||
slug: Web/API/AbstractRange/startOffset | ||
l10n: | ||
sourceCommit: 135b8311a5e3d12789e8421845be3ce026ef72b8 | ||
--- | ||
|
||
{{APIRef("DOM")}} | ||
|
||
**`startOffset`** は {{domxref("AbstractRange")}} インターフェイスの読み取り専用プロパティで、開始ノードにおける範囲の開始位置のオフセットを返します。 | ||
|
||
## 値 | ||
|
||
範囲の最初の文字が位置を {{domxref("AbstractRange.startContainer", "startContainer")}} が示す {{domxref("Node")}} 内の文字数で示す整数値です。 | ||
|
||
## 例 | ||
|
||
```js | ||
let startOffset = range.startOffset; | ||
``` | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} |