1. Web
  2. Web APIs
  3. StaticRange
  4. startOffset

StaticRange: startOffset property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2020⁩.

The read-only startOffset property of the StaticRange interface returns the offset into the start node of the range's start position.

Value

An integer value indicating the number of characters into the Node indicated by startContainer at which the first character of the range is located.

Specifications

Specification
DOM
# ref-for-dom-range-startoffset1

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /