Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which best explains getSelection()?

  2. 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

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The getSelection() method returns the value of the cursor-selected text.


Be The First To Comment