Visit Mozilla.org

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

[edit] Notes

This number is zero-based. If the selection ends with the first character in the focusNode, 0 is returned.