getElementsByName()

Test elements

This P has name="MapNode"

This checkbox has name="MapNode"
This image has name="MapNode"
This <ppk> tag has name="MapNode"

Finally this DIV has an id (and not a name!) MapNode

Test scripts

Create an array first: x = document.getElementsByName('MapNode'). The other tests won't work without this array.

Test alert(x.length). Correct answer: 4

Write the nodeName of all elements in the array.
(Correct answer: P, INPUT, IMG, PPK)