getSelection method

  1. @DomName('Window.getSelection')
  2. @DocsEditable()
Selection getSelection ()

Returns the currently selected text.

Other resources

Implementation

@DomName('Window.getSelection')
@DocsEditable()
Selection getSelection() native;