Selection.removeAllRanges()
The Selection.removeAllRanges()
method removes all ranges
from the selection, leaving the anchorNode
and
focusNode
properties equal to null
and
leaving nothing selected.
Syntax
removeAllRanges()
Parameters
None.
Return value
None (undefined
).
Specifications
Specification |
---|
Selection API # dom-selection-removeallranges |
Browser compatibility
BCD tables only load in the browser
See also
Selection
, the interface it belongs to.