"rows" Example
<source lang="javascript">
<html>
<body>
<script language="JavaScript">
var m = document.getElementById("myTable").rows.length;
alert(m);
</script>
</body>
</html>
</source>
"rows" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+
| Applied_To |
<tbody> |
| |<tfoot> <thead> |
+----------------+--------------------------------------------------------------+
</source>
"rows" JavaScript properties and JavaScript methods
<source lang="javascript">
JavaScript properties and JavaScript methods
deleteRow(), item(), insertRow(), length, namedItem(), tags(), urns()
</source>
"rows" Syntax Parameters and Note
<source lang="javascript">
Note:
Returns an array of all the rows in a element.
Syntax:
document.getElementById("elementID").rows // returns all rows
document.getElementById("elementID").rows(param1, param2) // returns an individual row
document.all.elementID.rows // IE only
document.all.elementID.rows(param1, param2) // IE only
Parameters:
param1 Required;
param2 Optional;
</source>