1。document.body.clientWidth,document.body.clientHeight
a.htm:
<body onload="javscript:document.getElementById('t1').value=document.body.clientWidth;javscript:document.getElementById('t2').value=document.body.clientHeight;">">
窗体宽度<input type="text" name="t1" readonly>
窗体高度<input type="text" name="t2" readonly>
</body>
2。<body onload="javascript:tab1.width='500';tab1.height='500'">
<table id="tab1">
</table>
</body>