A range object that will be added to the selection.
Returns the node in which the selection begins.
Returns a number representing the offset of the selection's anchor within the anchorNode.
Collapses the current selection to a single point.
Collapses the selection to the end of the last range in the selection. If the content the selection is in is focused and editable, the caret will blink there.
Collapses the selection to the start of the first range in the selection. If the content of the selection is focused and editable, the caret will blink there.
Indicates if the node is part of the selection
Deletes the actual text being represented by a selection object from the document's DOM.
Moves the focus of the selection to a specified point.
Returns the node in which the selection ends.
Returns a number representing the offset of the selection's anchor within the focusNode.
Returns a range object representing one of the ranges currently selected.
Returns a boolean indicating whether the selection's start and end points are at the same position.
Returns the number of ranges in the selection.
Removes all ranges from the selection, leaving the anchorNode and focusNode properties equal to null and leaving nothing selected.
Removes a range from the selection.
Adds all the children of the specified node to the selection.