View Full Version : adding to html page

06-20-2006, 08:33 PM
I'm trying to create a search page for old webcomic strips. my question is once i have the list of comics that the user searches for, how do i display then underneath the search bar without using document.write() which wipes clean the entire page?

06-20-2006, 08:51 PM
Use the DOM functions: document.createElement(), document.createTextNode(), and HTMLElement.appendChild().
The code (http://www.dynamicdrive.com/forums/showpost.php?p=40616&postcount=1337) I recently wrote to add rectangles to a page is a fairly good example.