in Education by
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 I had been asked this question during an online interview. Enquiry is from Script Loading in chapter Invocation and Performance Navigation of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
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.

Related questions

0 votes
    Which of the following explains Cookies nature? (a) Non Volatile (b) Volatile (c) Intransient (d) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these method of Array class is used sort an array or its subset? (a) binarysort() (b) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these interface handle sequences? (a) Set (b) List (c) Comparator (d) Collection The ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of this interface must contain a unique element? (a) Set (b) List (c) Array (d) Collection ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these is an incorrect form of using method max() to obtain a maximum element? (a) max( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these methods sets every element of a List to a specified object? (a) set() (b) fill() ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these methods can randomize all elements in a list? (a) rand() (b) randomize() (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these methods can convert an object into a List? (a) SetList() (b) ConvertList() (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these keywords is not a part of exception handling? (a) try (b) finally (c) thrown (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these keywords must be used to monitor for exceptions? (a) try (b) finally (c) throw (d ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
...