1.

What is the parameter of the method getElementsbyTagName() if we need to get an image?(a) image(b) src(c) img(d) imageurlI had been asked this question in my homework.My question is taken from Lazy Loading topic in chapter Invocation and Performance Navigation of JavaScript

Answer» 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.


Discussion

No Comment Found

Related InterviewSolutions