<ptml> <pead> <title>51windows.net </title> <meta http-equiv= "Content-type" content= "text /html; charset=gb2312 "> <style type=" text/css "> </style> </pead> <body> <script language=" Java Script "> var s =" "; S + + "Web page visible area wide:" + document.body.clientWidth; s + + "page visible Area High:" + document.body.clientHeight; S + + "Web page visible area wide:" + Document.body.offsetWidth + "(including edge width)"; s + + "page visible Area High:" + Document.body.offsetHeight + "(including the edge of the width)"; s + + "page text full text width:" + document.body.scrollWidth; s + + "page full text High:" + document.body.scrollHeight; S + + "Web page is rolled High:" + document.body.scrollTop; S + + "The page is rolled away to the left:" + document.body.scrollLeft; s + + "page body part:" + window.screentop; s + + "page body part left:" + window.screenleft; S + + "screen resolution of High:" + window.screen.height; S + + "screen resolution width:" + window.screen.width; S + + screen available work area height: + window.screen.availHeight; s = = "screen available working area width: + window.screen.availWidth;" alert (s); </SCRIPT> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]