DOM Append Text and Element Functions
These two functions will append new text or new elements (nodes) to existing elements within the page. Great addition to a JavaScript library. Easily modified.
Read more here
edit: Programming/Javascript/auto___dom_append_text_and_element_functions.wikieditish...