From Overview of Advanced JavaScript -- Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 98. byTom Scavo,Geoffrey C. Fox
To list the properties of document:
for ( var prop in document ) {
with ( document ) {
write( prop + " = " );
writeln( eval(prop), "<BR>");
}
}
Recall that the with statement qualifies all object references within its scope