JS Get screen Size

Source: Internet
Author: User

<HTML><Script>functionA () {document.write ("The screen resolution is:"+Screen.width+"*"+Screen.height+"<br/>"+"screen Available size:"+Screen.availwidth+"*"+Screen.availheight+"<br/>"+"width of visible area of Web page:"+Document.body.clientWidth+"<br/>"+"Web page Visible Area High:"+Document.body.clientHeight+"<br/>"+"the width of the page's visible area (including the width of the edge):"+Document.body.offsetWidth+"<br/>"+"The Web page has a high visible area (including the width of the edge):"+Document.body.offsetHeight+"<br/>"+"page Body Full text width:"+Document.body.scrollWidth+"<br/>"+"page Body Full text High:"+Document.body.scrollHeight+"<br/>"+"the page is rolled away High:"+Document.body.scrollTop+"<br/>"+"webpage is rolled away left:"+Document.body.scrollLeft+"<br/>"+"on the body part of the webpage:"+Window.screentop+"<br/>"+"page body part left:"+Window.screenleft+"<br/>"+"High screen resolution:"+Window.screen.height+"<br/>"+"width of screen resolution:"+Window.screen.width+"<br/>"+"screen usable workspace height:"+Window.screen.availHeight+"<br/>"+"screen Usable workspace width:"+window.screen.availWidth);}</Script><Bodyonload= "A ()" ></Body></HTML>

JS Get screen Size

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.