width

種類メソッド
書式 screen.width
解説
モニタの横幅を返します。
サンプルコード
function sampleCode()
{
n = screen.width;
txtField.data = n;
}
sampleCode();
実際のスクリプトをダウンロード