screen.width

モニタ画面の横幅のピクセル数を示します。

構文

screen.width

例文

<html>
 <head>
  <title>screen.width</title>
</head>
 <body>
  <script type="text/javascript"><!--
   document.write(screen.width);
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

EclipseでPHPプロジェクトにする方法

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る