http://www.csdn.net/Develop/Read_Article.asp?Id=8401html>
<head>
<title>打印对象的所有属性或方法</title>
</head>
<body>
<script>
function popUpProperties(inobj) {
 op = window.open();
 op.document.open('text/plain');
 for (objprop in inobj) {
 op.document.write(objprop + ' 的属性或方法:    ' + inobj[objprop] + '\n');
 }
 op.document.close();
}
</script>
<input type="button" name="whatever" 
onclick="popUpProperties(document)" 
value="点击这里获得本document的属性或方法">
</body>
</html>