advertisement

Article:
  Dynamic HTML Tables: Improving Performance
Subject:   Faster deleting method
Date:   2004-10-15 04:29:52
From:   schlundus
There's a faster method for deleting all rows:
--schnipp--
var x = tbody1.childNodes.length;
while (x-- > 0) {
tbody1.removeChild(tbody1.firstChild);
--schnapp--
Thus avoiding the lengthy property access of the childnodes.