Original Post
document.open seems to erase all of the current html. Is there a way to fetch the html before an open, so that I can write it back out with other stuff? For instance, I would like to preserve style definitions in the header, and various inputs in the body, but I would like to write out additional inputs.