I am using a webBrowser control as the main output window for my application. The first time I use document.write(), the text is completely replaced. The second time the text
Call OpenNew before writing the document.
HtmlDocument doc = webBrowser1.Document.OpenNew(true); doc.Write("This is a new HTML document.");