Web page Visible area width: document.body.clientWidth
Web page Visible Area height: document.body.clientHeight
Web page Visible Area width: document.body.offsetWidth (including edge width)
Web page Visible Area High: document.body.offsetHeight (including edge height)
Page body Full text width: document.body.scrollWidth
Page body Full text High: Document.body.scrollHeight
Page is rolled away High: document.body.scrollTop
Webpage is rolled away left: document.body.scrollLeft
Page body part: Window.screentop
Page body part left: Window.screenleft
High screen resolution: Window.screen.height
Width of screen resolution: Window.screen.width
Screen available work area height: window.screen.availHeight
Screen available work area width: window.screen.availWidth
<script language= "JavaScript" >
function Screeninfo () {
var s = "";
s + = "\ r \ n page Visible area width:" + document.body.clientWidth;
s + = "\ r \ n page visible Area High:" + document.body.clientHeight;
s + = "\ r \ n page Visible area width:" + document.body.offsetWidth + "(including edge width)";
s + = "\ r \ n page visible Area High:" + Document.body.offsetHeight + "(including edge width)";
s + = "\ r \ n Full text width:" + document.body.scrollWidth;
s + = "\ r \ n Full text High:" + document.body.scrollHeight;
s + = "\ r \ n page is rolled High:" + document.body.scrollTop;
s + = "\ r \ n page is rolled away left:" + document.body.scrollLeft;
s + = "\ r \ n Web page body part:" + window.screentop;
s + = "\ r \ n Page body part left:" + window.screenleft;
s + = "\ r \ n Screen resolution High:" + window.screen.height;
s + = "\ r \ n Screen resolution width:" + window.screen.width;
s + = "\ r \ n screen available work area height:" + window.screen.availHeight;
s + = "\ r \ n screen available work area width:" + window.screen.availWidth;
alert (s);
}
</script>
Get information like screen height and width with javascript