<body style="font-size:14px;color=#0033CC">
请输入一个对象(如navigator document window),回车显示他的下一级所有子对象属性和方法<br><br>
<input type="text" id="strObj" name="strObj" value="window"><input type="submit" value="ShowDetail" onClick="showObj()"><br><br>
<span name="showField" id="showField"></span>
</body>
<script>
function showObj()
{
showField.innerHTML="";
var obj= document.getElementById("strObj").value;
var dbj_kid="";
for(var i in eval(obj))
{
obj_kid = obj+"."+i;
showField.innerHTML += obj_kid +" = "+ eval(obj_kid) +"<BR>";
}
}
</script>