JavaScript DHTML/Javascript Collections/tBodies
Версия от 12:59, 26 мая 2010; (обсуждение)
"tBodies" Example
<source lang="html4strict">
<html> <body>
Row 1 |
Row 2 |
Row 3 |
Row 4 |
Row 5 |
Row 6 |
<button onclick="function1;">Get total number of tbody elements</button> <script language="JavaScript">
function function1 { var m = document.getElementById("myTable").tBodies.length; alert(m); }
</script> </body> </html>
</source>