<html>
<head>
<script language="vbscript">
sub window_onload
msgbox document.getElementsByName("name1").length
end sub
</script>
</head>
<body>
<div name="name1">testDiv</div>
<table id="tbl1" name="name1"><tr><td>table1</td></tr></table>
<table id="tbl2"
name="name1"><tbody><tr><td>table2</td></tr></tbody></table>
</body>
</html>
Why document.getElementsByName("name1") returns always 0 ? I have 3 elements
with name property="name1"
Does anybody know the answer?
Is there any other way to join this 3 elements?
I have about 1000 table elements on the page and I don't want to use
function document.getElementsByTagName.
Thank you,
Simon