Cris Teta wrote:
im just newbie in javascript and html dom. I just want to know how will
i get the total number of rows in a certain html table?
The W3C DOM is publically documented:
http://www.w3.org/TR/DOM-Level-2-HTML/
you will find the properties of a HTML <table> element here:
http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-64060425
So the rows property is what you are looking for which then has a
property length you can check.
As for accessing a certain HTML table that is not different from a
accessing any other certain element, if the table has an id attribute
you can use
var table = document.getElementById('tableId')
but of course the DOM has other ways (getElementsByTagName, childNodes,
first/lastSibling) to access nodes.
--
Martin Honnen
http://JavaScript.FAQTs.com/