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

{{APIRef("DOM")}}

The read-only endContainer property of the {{domxref("AbstractRange")}} interface returns the {{domxref("Node")}} in which the end of the range is located.

Value

The {{domxref("Node")}} which contains the last character of the range.

Example

let endNode = range.endContainer;

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}