---
title: StaticRange.endContainer
slug: Web/API/StaticRange/endContainer
tags:
  - API
  - DOM
  - DOM API
  - Property
  - Reference
  - Static Range API
  - StaticRange
  - endContainer
browser-compat: api.StaticRange.endContainer
---
{{APIRef("DOM
    WHATWG")}}

The **`endContainer`** property of the {{domxref("StaticRange")}} interface returns the end {{domxref("Node")}} for the range.

## Syntax

```js
var node = staticNode.endContainer
staticNode.endContainer = endContainer
```

### Value

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

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
