---
title: AbstractRange.startOffset
slug: Web/API/AbstractRange/startOffset
tags:
  - API
  - AbstractRange
  - DOM
  - DOM API
  - Property
  - Range
  - Read-only
  - Reference
  - offset
  - startOffset
browser-compat: api.AbstractRange.startOffset
---
{{APIRef("DOM")}}

The read-only **`startOffset`** property of the {{domxref("AbstractRange")}} interface returns the offset into the start node of the range's start position.

## Syntax

```js
var startOffset = range.startOffset
```

### Value

An integer value indicating the number of characters into the {{domxref("Node")}} indicated by {{domxref("AbstractRange.startContainer", "startContainer")}} at which the first character of the range is located.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
