document.getSelection( )
The text, if any, that is currently selected within the document. This returned text has HTML formatting tags removed.