The JavaScript code Note: The bordersOn class is set to turn on borders for td elements. var numlinks = 0; document.writeln(''); document.writeln('PropertyValue'); document.writeln(''); for (var prop in document) { var value = document[prop]; if (value == "") value = " "; document.writeln('' + prop + '' + value + ''); } document.writeln(''); document.writeln('');