getSelection method

Selection? getSelection()

Returns the currently selected text.

Other resources

Implementation

Selection? getSelection() native;