anchorOffset
The Selection.anchorOffset
read-only property returns the number of characters that the selection's anchor is offset within the In the case of Selection.anchorNode being another type of node, Selection.anchorOffset
returns the number of Node.childNodes the selection's anchor is offset within the Selection.anchorNode.