yep it works ... just tried out a sample and here is the code ...
<html>
<head>
<script language="javascript">
function countTableRows()
{
var rows=document.getElementById("tbl").rows.length;
alert(rows);
}
</script>
</head>
<body>
<table id="tbl">
<tr><td>Row 1</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 3</td></tr>
<tr><td>Row 4</td></tr>
</table>
<input type="button" value="count" onClick="javascript
:countTableRows()">
</body>
</html>
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com