screen对象
screen对象包含客户端浏览器屏幕的相关信息
screen对象常见属性如下:availHeight:返回屏幕的高度(除window系统任务栏之外)
availWidth:返回屏幕的宽度(除window系统任务栏之外)
height:返回屏幕的高度
width:返回屏幕的宽度
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>screen对象</title>
</head>
<body>
<script type="text/javascript">
window.document.write("屏幕高度"+window.screen.availHeight);
window.document.write("屏幕宽度"+window.screen.availWidth);
window.document.write("屏幕高度"+window.screen.height);
window.document.write("屏幕宽度"+window.screen.width);
</script>
</body>
</html>