in Education by
What is the parameter of the method getElementsbyTagName() if we need to get an image? (a) image (b) src (c) img (d) imageurl I had been asked this question in my homework. My question is taken from Lazy Loading topic 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) img Explanation: To get the source attribute the parameter is src. The method must look like getElementsbyTageName(“img”) if we need to get an image.

Related questions

0 votes
    How do we create and preload an image object in JavaScript? (a) Use new keyword (b) Call Image() ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is necessary when we need to create a new field in craft? (a) Type of the input (b) Type ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    What will happen if we provide concrete implementation of method in interface? (a) The concrete class ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the radix parameter in the parseInt() method? (a) Numeral system not to be ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How can we get the size of specified file? (a) capacity(path) (b) size(path) (c) length(path) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    How do we get the DOM object in JavaScript? (a) getElementbyId() (b) getObject() (c) getElement( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What will happen if the fvonly parameter is set to 1? (a) Results got for the first view (b) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the purpose of image replacement? (a) To replace an image (b) To implement special effects ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which side of the image map can be created using JavaScript? (a) Server side (b) Client side (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How to assign the image source in JavaScript? (a) image = url (b) source( url ) (c) image ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which are the special tags used for image mapping? (a) map and area (b) map and usemap (c) only ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
...