Notice also, that we don't loose all the original html we put on this page -- By adding the javascript in between the <body> xxxx </body> tags, we keep our original information intact, and just add to it.
<SCRIPT LANGUAGE = JavaScript>
document.writeln("The properties of the document object:")
for(var element in document){
document.writeln(element + " = " + document[element] + "<br>")
}
</SCRIPT>