screen.availWidth

書式

screen.availWidth

説明

モニタ画面の利用可能な横幅のピクセル数を示します。これはタスクバーやメニューバー、ドックなどの幅を除いた値になります。ただし、Operaではscreen.widthプロパティと同じ値を返します。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
</head>
<body>
<script type="text/javascript"><!--
document.write(screen.availWidth);
// --></script>
</body>
</html>