Creating and deleting rows of tables
(Words chosen randomly from among a randomly constructed list of six letter words.)
This paints the basic picture.
A new row is created using R=document.createElement("tr")
New cells within that row are created using D=document.createElement("td")
The cells are appended to the row by R.appendChild(D)
The row is then appended to the table by
The reason we don't just append it to the table directly, is that Internet Explorer, apparently
unlike the other browsers creates a TBODY element inside the table, so that rows are not children of the
table but of the tbody. Finding the parent of the first row as the future container of additional rows
seems to work fairly well, unless that first row becomes deleted.
As rows are deleted they are appended to a stack of deleted items for subsequent retrieval.