Problems with Document.Write

How do I add extra data to an HTML file using JavaScript after the document has finished loading?

I've tried document.write() and document.writeIn(), but they both make a new document and add the data to that.

Any ideas?

[240 byte] By [robinjam] at [2007-12-24]
# 1

Hi,

Rather than using document.write you shoudl look at DOM methods such as innerHTML or createElement to create the HTML adn then insert it into the document where you wish.

Thanks
-Dave

DaveMassy at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 2
Thanks
robinjam at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...