Document JavaScript Tutorial

The getSelection() method returns the text that is selected within the HTML document.


    
                   name="TextArea">