I want to use Javascript to write text to a web page. I tried document.write and it appeared to make the text appear on its own on a new page, making the existing apge dissapear.

I'm not really sure how document.writeln differs, but I don't think that I can specify where the text appears on the page if I use that.

I think that using the innerhtml property is what I need, but I don't belive that it is supported by the DOM.

What is the solution for printing text to an arbitrary spot on a page.