Selection and range objects in JavaScript

Object Support Description
controlRange
Represents a collection of controls. A control can be a button, select, textarea, one of the input elements or an arbitrary element in contentEditable mode.
Range
9
Represents a contiguous part of the document.
selection
10.5
Represents the currently selected part of the document.
selectionRange
9
Represents the currently selected part of the document.
TextRange
10.5
Represents a contiguous part of the document.
TextRanges
Represents a collection of TextRange objects that belong to the current selection.
User Contributed Comments

Post Content

Post Content