Results 1 - 19 of 19
method collapses the current selection to a single point. The document is not modified. If the content is focused and editable, the caret will blink there.
method indicates if the node is part of the selection.
method applies a change to the current selection or cursor position, using simple textual commands.
method removes all ranges from the selection, leaving the
properties equal to
and leaving nothing selected.
method collapses the selection to the end of the last range in the selection. If the content of the selection is focused and editable, the caret will blink there.
method 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.
method deletes the actual text being represented by a selection object from the document's DOM.
method moves the focus of the selection to a specified point. The anchor of the selection does not move. The selection will be from the anchor to the new focus regardless of direction.
method returns a range object representing one of the ranges currently selected.
method removes a range from the selection.
method adds all the children of the specified node to the selection. Previous selection is lost.
method returns a string currently being represented by the selection object, i.e. the currently selected text.
read-only property returns the
in which the selection begins.
read-only property returns the number of characters that the selection's anchor is offset within the
read-only property returns the Node, in which selection ends.
read-only property returns the number of characters that the selection's focus is offset within the
read-only property returns a
which indicates whether or not there is currently any text selected; That is to say that the selection's start and end points are at the same position in the content.
read-only property returns the number of ranges in the selection.