Returns a string currently being represented by the selection object, i.e. the currently selected text.
stringis the string representation of selection.
This method returns the currently selected text.
alert(window.getSelection()) // What is called alert(window.getSelection().toString()) // What is actually being effectively called.