Visit Mozilla.org

DOM:Selection:anchorOffset

From MDC

« Gecko DOM Reference

[edit] Summary

Returns the number of characters that the selection's anchor is offset within the anchorNode.

[edit] Syntax

sel.anchorOffset

[edit] Notes

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