■このウインドウの表示領域と外枠の情報は次のようになります


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>ウインドウの表示領域と外枠のサイズを参照したい</title>
</head>
<body bgcolor="#eeffff">
<p>■このウインドウの表示領域と外枠の情報は次のようになります</p>
<script type="text/JavaScript">
document.write("<p>●表示領域の幅と高さ<br>window.innerWidth = "+window.innerWidth+"<br>");
document.write("window.innerHeight = "+window.innerHeight+"</p>");
document.write("<p>●外枠の幅と高さ<br>window.outerWidth = "+window.outerWidth+"<br>");
document.write("window.outerHeight = "+window.outerHeight+"</p>");
// -->
</script>
</body>
</html>


★解説★