Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/api/abstractrange/endoffset/index.md
6516 views
---
title: AbstractRange.endOffset slug: Web/API/AbstractRange/endOffset page-type: web-api-instance-property browser-compat: api.AbstractRange.endOffset
---

{{APIRef("DOM")}}

The endOffset property of the {{domxref("AbstractRange")}} interface returns the offset into the end node of the range's end position.

Value

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

Example

let endOffset = range.endOffset;

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}