Thanks everyone- it ends up that the tag of the table changes after a record is added.
This was really confusing to the function call. Since there are other tables with the tag that this table changes into. It simply returned bad info and was difficult to debug.
You do not need to be using DOM.
And When you declare the page the HTMLTable
is an object on the normal declaration- there are methods to use against the tables.
Hope that answers you.