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

Correct Answer: Returns the value of cursor-selected text

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.

Related Questions

In the past year, there has been a large drop in the member of new cars sold due to harsh economic conditions in the market place and high taxes. At the same time, the average price paid for a new car has risen dramatically. Which of the following, if true, best explains the increase in the average price of a new car?
In 1997, 10% of automobile insurance premiums went to pay costs arising from injuries occurred in car accidents, In 2007, cost despite the fact that cars were much safer in 2007 than in 1997 . which of the following . if true, best explains the discrepancy outlined above?
Which one of the following best explains the sentences. "Jamil had the computer repaired yesterday."
Which one among the following best explains the reason for the eastern and western boundaries of the Pacific Ocean experiencing frequent earthquake?
Which of the following best explains the meaning of managerial participation in effective computer utilization is MIS:
What best explains a shift in market supply curve to the right?
Leadership theory which explains that a leader is strongly affected by the situation in which he works is
Which of the following explains Cookies nature?

Next steps