Performance Tip 2 - innerText vs. createTextNode

It is faster to update the content of an element directly through the DHTML innerText property than it is to call the DOM createTextNode method.

Click the buttons to see the difference in performance.

Slow - 

Faster - 
© 2007 Microsoft Corporation. All rights reserved. Terms of use.