Microsoft
98-375 · Question #90
You want to obtain a list of all elements whose tag name is div, and you need to retrieve this list as quickly as possible. Which function is most appropriate for this task?
The correct answer is C. getElementsByTagName. See the full explanation below for the reasoning.
Question
You want to obtain a list of all elements whose tag name is div, and you need to retrieve this list as quickly as possible. Which function is most appropriate for this task?
Options
- AgetElementsByName
- BquerySelectorAll
- CgetElementsByTagName
- DgetElementsByClass
How the community answered
(21 responses)- A10% (2)
- C86% (18)
- D5% (1)
Community Discussion
No community discussion yet for this question.