JavaScript is case-senditive:
alert(eleTables[i].id);
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"C" <C@discussions.microsoft.comwrote in message
news:7E**********************************@microsof t.com...
Hi,
I get a collecton of tables usig below JS.
How do I write out the table ID in my alert?
var eleTables = document.getElementsByTagName("table");
for (var i=0; i < eleTables.length; i++)
{
alert(eleTables[i].Id);
}