Home / Programming MCQs / JavaScript MCQs / Question

M

Mr. Dubey • 51.43K Points
Coach

Q. 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
Explanation by: Mr. Dubey
The getSelection() method returns the value of the cursor-selected text.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.