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>
<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>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货