The getSelection() method returns the text that is selected within the HTML document. name="TextArea">