Interface

Selection

Selection

A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection().

View Source js/lib.dom.d.ts, line 6340