Returns the number of ranges in a selection
The number of ranges in a selection.
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1
Windows Internet Explorer 9 does not currently support multiple or disjointed selections in standards mode. This property always returns a 1 with a valid selection. It returns a 0 if removeRange or removeAllRanges have been applied, though calling isCollapsed is recommended instead to detect an empty range.
Build date: 11/17/2013