Baseline Widely available
The Selection.isCollapsed
read-only property returns a boolean value which indicates whether or not there is currently any text selected. No text is selected when the selection's start and end points are at the same position in the content.
Keep in mind that a collapsed selection may still have one (or more, in Gecko) Range
s, so Selection.rangeCount
may not be zero. In that scenario, calling a Selection
object's getRangeAt()
method may return a Range
object which is collapsed.
A boolean.
Specifications Browser compatibility See alsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4