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 |
|
Represents a contiguous part of the document. | ||||||||||
selection |
|
Represents the currently selected part of the document. | ||||||||||
selectionRange |
|
Represents the currently selected part of the document. | ||||||||||
TextRange |
|
Represents a contiguous part of the document. | ||||||||||
TextRanges | Represents a collection of TextRange objects that belong to the current selection. |
User Contributed Comments