JS get wide High

Source: Internet
Author: User

JS get wide High

1 functionGetInfo ()2 { 3 vars = ""; 4s + = "page visible area width:" +Document.body.clientWidth;5s + = "page visible Area High:" + document.body.clientHeight;//Body6s + = "page visible area width:" + document.body.offsetWidth + "(including Edge and scroll bar width)"; 7s + = "page visible Area High:" + Document.body.offsetHeight + "(including edge width)"; 8s + = "page body Full text width:" +Document.body.scrollWidth;9s + = "page body full text High:" + document.body.scrollHeight;//windowTens + = "page is rolled high (FF):" +Document.body.scrollTop; Ones + = "page is rolled high (ie):" +Document.documentElement.scrollTop; As + = "page is rolled away left:" +Document.body.scrollLeft; -s + = "page body part:" +Window.screentop; -s + = "page body part left:" +Window.screenleft; thes + = "screen resolution High:" +Window.screen.height; -s + = "screen resolution width:" +Window.screen.width; -s + = "screen available work area height:" +Window.screen.availHeight; -s + = "screen usable workspace width:" +Window.screen.availWidth; +s + = "Your screen setting is" + window.screen.colorDepth + "bit color";  -s + = "your screen settings" + Window.screen.deviceXDPI + "pixels/inch";  + //alert (s); A }  atGetInfo ();

JS get wide High

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.