AbstractRange: startContainer property

The read-only startContainer property of the AbstractRange interface returns the start Node for the range.

Value

The Node inside which the start position of the range is found.

Example

js
let startNode = range.startContainer;

Specifications

Specification
DOM Standard
# ref-for-dom-range-startcontainer①

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
startContainer