Just trying to remove a table but loop is not removing all rows.
I have used alert to be sure it’s the right element by id.
It does remove some rows but not all, just chunks.
console reports: DOM Exception 1,DOM Exception 8
function removeThis(unsetElement)
{ unsetElement.parentNode.removeChild(unsetElement); }
While you remove rows, their indices change; you need to do the loop from the top, i.e.
Yet the better idea is just to purge the whole table; rows will be garbage-collected.