removeAllRanges method

void removeAllRanges()

The Selection.removeAllRanges() method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to null and nothing selected. When this method is called, a Document/selectionchange_event event is fired at the document.

Note: This method is an alias for the Selection.empty method.

Implementation

external void removeAllRanges();