DOM:Selection:focusOffset
From MDC
« Gecko DOM Reference
[edit] Summary
Returns the number of characters that the selection's focus is offset within the focusNode.
[edit] Syntax
sel.focusOffset
This number is zero-based. If the selection ends with the first character in the focusNode, 0 is returned.