<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>debugging JavaScript</title>
<Script lanaguage="javascript">
// create the debug window
debugWindow=window.open("", "debugWin", "toolbar=no, scrollbars=yes,width=300,height=800");
function debug(msg) {
debugWindow.document.writeln(msg+"<br>");
}
function show(root) {
var key;
if (typeof(root)=="object") {
for (key in root)
show(key+"="+root[key]);
}
else
debug(root);
}
</SCRIPT>
</head>
<body>
the value<br>
<script>
show(document);
</script>
</body>
</html>