adplus-dvertising
frame-decoration

Question

What is the parameter of the method getElementsbyTagName() if we need to get an image?

a.

image

b.

src

c.

img

d.

imageurl

Posted under JavaScript

Answer: (c).img

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the parameter of the method getElementsbyTagName() if we need to get an image?

Similar Questions

Discover Related MCQs

Q. What does the rel attribute of a variable have when the type of file is CSS?

Q. What is the purpose of holding whatever tag you create in the attribute type?

Q. What is the inital step to set up a CSS Lazy Loading?

Q. How is the render time calculated?

Q. What is the purpose of the domLoading attribute?

Q. Which is the method used to add an event listener?

Q. Which of the following is an attribute to the script object?

Q. What is the result when the showPerformanceMetrics() is called before loading the remote script?

Q. What are the parameters of the attachEvent function?

Q. Where is the external JavaScript placed in the case of lazy loading?

Q. What is the purpose of lazy loading?

Q. When the 'end' event fires on EOF when no more data will arrive, which function is called?

Q. What is the purpose of the method localeCompare()?

Q. Which of the following are client-side JavaScript object?

Q. Which best explains getSelection()?

Q. Which of the following navigator object properties is the same in both Netscape and IE?

Q. What is the purpose of creating a data frame?

Q. What is the method to create a data frame ?

Q. What is the default value of the asyc attribute?

Q. What is the purpose of the method createDocumentFragment()?