Which best explains getSelection()?

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
 
Answer: c
Explanation: 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.
 

Tìm kiếm

Back
Top