Which best explains getSelection()?
(a) Returns the VALUE of a selected OPTION
(b) Returns document.URL of the window in focus
(c) Returns the value of cursor-selected text
(d) Returns the VALUE of a checked radio input
(a) Returns the VALUE of a selected OPTION
(b) Returns document.URL of the window in focus
(c) Returns the value of cursor-selected text
(d) Returns the VALUE of a checked radio input
Right choice is (c) Returns the value of cursor-selected text
The best I can explain: The Window.getSelection() method returns a Selection object representing the range of text selected by the user or the current position of the caret. The getSelection() method returns the value of the cursor-selected text.