getSelection method

Returns the currently selected text.

Selection getSelection( )

Returns the currently selected text.

Other resources