Originally Posted by Old Pedant
But the recommended way to do this is *NOT* to use createElement("tr") or createElement("td")!!
Instead, you should use table.insertRow() and tr.insertCell().
Just to expand on that - there are only two elements in a table where you need to use createElement - for the table
itself and for the one or more tbody
tags that the table contains. All of the other table elements can be created more efficiently and with far easier to read code using the appropriate table properties and methods.
Helping others to solve their computer problem at http://www.felgall.com/