I write the following JS and run in IE 10:
function test() { var nodes = document.getElementsByTagName(\"h1\"); document.writeln(nodes.length); f
j is a variable counter, not the object.
j
You need nodes.item(j).toString();
nodes.item(j).toString();