1, JS get screen size
functionA () {document.write ("Screen resolution:" +screen.width+ "*" +Screen.height+ "<br/>" + "screen available size:" +screen.availwidth+ "*" +Screen.availheight+ "<br/>" + "width of visible area of Web page:" +Document.body.clientWidth+ "<br/>" + "page visible Area High:" +Document.body.clientHeight+ "<br/>" + "width of the visible area of the Web page (including the width of the edge):" +Document.body.offsetWidth+ "<br/>" + "high visible area of Web page (including edge width):" +Document.body.offsetHeight+ "<br/>" + "page body full text width:" +Document.body.scrollWidth+ "<br/>" + "page body full text High:" +Document.body.scrollHeight+ "<br/>" + "page is rolled High:" +Document.body.scrollTop+ "<br/>" + "page is rolled away left:" +Document.body.scrollLeft+ "<br/>" + "Web page body part:" +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 available work area height:" +Window.screen.availHeight+ "<br/>" + "screen available working area width:" +window.screen.availWidth);}</script><body onload= "A ()" ></body>JS Get screen Size