collapsed

The collapsed JS AbstractRange returns true if range is collapsed; otherwise false.

Syntax

collapsed = range.collapsed

Examples

1 · p · false

2 · p · true

3 · div · false

4 · div · true

endContainer

endOffset

startContainer

startOffset

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu