Results 1 - 19 of 19

Selection.collapse()

The Selection.collapse() 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.
API Experimental HTML Editing Method Reference Selection

Selection.containsNode()

The Selection.containsNode() method indicates if the node is part of the selection.
API Experimental HTML Editing Method Reference Selection

Selection.modify()

The Selection.modify() method applies a change to the current selection or cursor position, using simple textual commands.
API HTML Editing Method Reference Référence Selection

Selection.removeAllRanges()

The Selection.removeAllRanges() method removes all ranges from the selection, leaving the anchorNode and focusNode properties equal to null and leaving nothing selected.
API Experimental HTML Editing Method Reference Selection

Selection.collapseToEnd()

The Selection.collapseToEnd() 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.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.collapseToStart()

The Selection.collapseToStart() 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.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.deleteFromDocument()

The Selection.deleteFromDocument() method deletes the actual text being represented by a selection object from the document's DOM.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.extend()

The Selection.extend() 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.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.getRangeAt()

The Selection.getRangeAt() method returns a range object representing one of the ranges currently selected.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.removeRange()

The Selection.removeRange() method removes a range from the selection.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.selectAllChildren()

The Selection.selectAllChildren() method adds all the children of the specified node to the selection. Previous selection is lost.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.toString()

The Selection.toString() method returns a string currently being represented by the selection object, i.e. the currently selected text.
API Experimental Expérimental HTML Editing Method Reference Référence Selection

Selection.anchorNode

The Selection.anchorNode read-only property returns the Node in which the selection begins.
API Experimental Expérimental HTML Editing Property Read-only Reference Référence Selection

Selection.anchorOffset

The Selection.anchorOffset read-only property returns the number of characters that the selection's anchor is offset within the Selection.anchorNode.
API Experimental Expérimental HTML Editing Property Read-only Reference Référence Selection

Selection.focusNode

Selection.focusNode read-only property returns the Node, in which selection ends.
API Experimental Expérimental HTML Editing Property Read-only Reference Référence Selection

Selection.focusOffset

The Selection.focusOffset read-only property returns the number of characters that the selection's focus is offset within the Selection.focusNode.
API Experimental Expérimental HTML Editing Property Read-only Reference Référence Selection

Selection.isCollapsed

The Selection.isCollapsed read-only property returns a Boolean 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.
API DOM Experimental Expérimental HTML Editing Property Read-only Reference Référence Selection

Selection.rangeCount

The Selection.rangeCount read-only property returns the number of ranges in the selection.
API Experimental Expérimental HTML Editing Property Read-only Reference Référence Selection