Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

What is the output of following JavaScript code?

script type="text/javascript

function x()

{

var s= "Good 100%";

var pattern = /D/g;

var output= s.match(pattern);

document.write(output);

}

/script

a) Good %

b) 1,0,0

c) G,o,o,d,%

d) Error

What is the output of following JavaScript code?

script type=text/javascript

var cst="CHADHA SOFTWARE TECHNOLOGIES";

alert(cst.charAt(cst.length-1));

/script

a) P

b) E

c) S

d)Error

Step by Step Solution

3.38 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

c Returns the value of cursorselected text The getSelection method returns a Selectio... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Derivatives Markets

Authors: Robert McDonald

3rd Edition

978-9332536746, 9789332536746

More Books

Students also viewed these Electrical Engineering questions