startOffset

The startOffset JS AbstractRange returns range’s start offset.

Syntax

offset = range.startOffset

Examples

1 · p

2 · div

collapsed

endContainer

endOffset

startContainer

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu