adplus-dvertising
frame-decoration

Question

Which is a possible way of finding all the img elements in the document?

a.

document(images)

b.

document.images[]

c.

document(img)

d.

all of the mentioned

Posted under JavaScript

Answer: (b).document.images[]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is a possible way of finding all the img elements in the document?