コードコピーは次のとおりです。
関数getInfo()
{
var s = "";
s+= "Webページの可視領域幅:"+document.body.clientwidth+"";
S+= "Webページの可視領域の高さ:"+document.body.clientheight+"";
s + = "Webページの可視領域幅:" + document.body.offsetwidth + "(エッジとスクロールバーの幅を含む)" + "";
s + = "Webページの可視領域の高さ:" + document.body.offsetheight + "(エッジの幅を含む)" + "";
s+= "Webページ本体の全文幅:"+document.body.scrollwidth+"";
s+= "Webページの全文:"+document.body.scrollheight+"";
s+= "展開されているWebページのHigh(ff):"+document.body.scrolltop+"";
s+= "ロールオフされているWebページの高(すなわち):"+document.documentlement.scrolltop+"";
s+= "展開されているWebページの左側:"+document.body.scrollleft+"";
S+= "Webページの本文部品:"+window.screentop+"";
s+= "Webページの左のテキストパーツ:"+window.screenleft+"";
s+= "高画面解像度:"+window.screen.height+"";
s+= "画面解像度の幅:"+window.screen.width+"";
s+= "画面利用可能なワークスペースの高さ:"+window.screen.availheight+"";
s+= "画面利用可能なワークスペース幅:"+window.screen.availwidth+"";
s += "画面設定は" +window.screen.colordepth +"ビット色" +""です。
s += "画面設定" +window.screen.devicexdpi +"pixel/inch" +"";
s+= "ウィンドウのページビジュアルパーツ実際の高さ(ff)"+window.innerheight+"";
アラート(s);
};