getSelection
The getSelection()
method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret.
The getSelection()
method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret.