<body><SCRIPT LANGUAGE="JavaScript">
var s = "网页正文部分宽:"+ document.body.clientWidth;
s += "\r\n网页正文部分高:"+ document.body.clientHeight;
s += "\r\n网页正文部分上:"+ window.screenTop;
s += "\r\n网页正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的宽:"+ window.screen.width;
s += "\r\n屏幕可用工作区高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;
alert(s);
</SCRIPT>
同意楼上;
想要改变ie大小用下面的:
<script language="JavaScript">
<!--
function redirectPage(){
var url800x600="index1.htm";
var url1024x768="index2.htm";
if ((screen.width==800)&&(screen.height==600))
window.location.href= url800x600;
else if ((screen.width==1024)&&(screen.height==768))
window.location.href=url1024x768;
else window.location.href=url800x600;
}
-->
</script>