Browser Web screen text width and height

Source: Internet
Author: User

Console.log ("page visible area width" + document.body.clientWidth);
Console.log ("Page visible Area High" + document.body.clientHeight);
Console.log ("width of the visible area of the page (including edge width)" + document.body.offsetWidth);
Console.log ("High visible area of the page (including edge height)" + document.body.offsetHeight);
Console.log ("Full text width of the Web page" +document.body.scrollwidth);
Console.log ("The full text of the Web page is High" +document.body.scrollheight);
Console.log ("The Web page is rolled high" +document.body.scrolltop);
Console.log ("The webpage is rolled away left" +document.body.scrollleft);
Console.log ("The full text of the Web page" +window.screentop);
Console.log ("The full text of the Web page is left" +window.screenleft);
Console.log ("High screen Resolution" +window.screen.height);
Console.log ("High screen Resolution" +window.screen.width);
Console.log ("screen usable work area height" +window.screen.availheight);
Console.log ("Screen usable workspace width" +window.screen.availwidth);

Browser Web screen text width and height

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.