Ok- I'm sorry, my scripting is pathetic, but, I'm ok(ish) with VBScript, but I'm totally new to JavaScript/Netscape

How do I, using JavaScript/Netscape:

1. Check when the document has completed loading?

2. Do the equivalent of the IE object model code:

document.all.tags('DIV').item(0).innerHTML = '';

Thanks.