The endOffset
property of the StaticRange
interface returns the offset into the end node of the range's end position.
The endOffset
property of the StaticRange
interface returns the offset into the end node of the range's end position.
An integer value indicating the number of characters into the Node
indicated by endContainer
at which the final character of the range is located.
Specification |
---|
DOM Standard # ref-for-dom-range-endoffset① |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
endOffset |
60 | 18 | 69 | No | 47 | 10.1 | 60 | 60 | 79 | 44 | 10.3 | 8.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/StaticRange/endOffset