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

{{APIRef("DOM")}}

The read-only startContainer property of the {{domxref("AbstractRange")}} interface returns the start {{domxref("Node")}} for the range.

Value

The {{domxref("Node")}} inside which the start position of the range is found.

Example

let startNode = range.startContainer;

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}