1 | Document Properties (cont'd) |
2 | To list the properties of document: |
3 | for ( var prop in document ) { |
4 | with ( document ) { |
5 | write(prop + " = "); |
6 | writeln(eval(prop), "<BR>"); |
7 | } |
8 | } |
9 | Recall that the with statement qualifies all object references within its scope |