/ Published in: JavaScript
This is optimized code. I absolutely love that it validates the html and allows you to simply append to instead of having to capture and rewrite. Very handy on many projects!
URL: http://www.optimalworks.net/blog/2007/web-development/javascript/innerhtml-alternative