The read-only startContainer
property of the AbstractRange
interface returns the start Node
for the range.
The read-only startContainer
property of the AbstractRange
interface returns the start Node
for the range.
The Node
inside which the start position of the range is found.
js
let startNode = range.startContainer;
Specification |
---|
DOM Standard # ref-for-dom-range-startcontainer① |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
startContainer |
90 | 9018–79 | 69 | No | 76 | 14.1 | 90 | 90 | 79 | 64 | 14.5 | 15.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange/startContainer