nerdexam
National_Instruments

200-500 · Question #114

What method can be used to find a tag with the name "foo" via the DOM extension?

The correct answer is B. getElementsByTagName(). See the full explanation below for the reasoning.

Question

What method can be used to find a tag with the name "foo" via the DOM extension?

Options

  • AgetElementById()
  • BgetElementsByTagName()
  • CgetElementsByTagNameNS()
  • DgetElementByName()
  • EfindTag()

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    79% (23)
  • C
    3% (1)
  • D
    14% (4)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice