Javascript:
Alert (document.body.clientWidth); Web page visible Area width (body)
Alert (document.body.clientHeight); Web page visible Area high (body)
Alert (document.body.offsetWidth); Web page visible area width (body), including border, margin, etc.
Alert (document.body.offsetHeight); Web page visible area width (body), including border, margin, etc.
Alert (document.body.scrollWidth); Page body full text width, including non-visible area with scroll bar
Alert (document.body.scrollHeight); The full text of the Web page is high, including the unseen area with scroll bars
Alert (document.body.scrollTop); Top (scroll Bar) of the page being rolled away
Alert (document.body.scrollLeft); Web page is rolled away left (scroll Bar)
Alert (window.screentop); Browser Distance Top
Alert (window.screenleft); Browser distance left
Alert (window.screen.height); High screen resolution
Alert (window.screen.width); Width of screen resolution
Alert (window.screen.availHeight); The screen can be high on the work area
Alert (window.screen.availWidth); The width of the work area available on the screen
Jquery:
Alert ($ (window). Height ()); Browser Current window viewable area height
Alert (document). Height ()); The height of the Browser's current window document
Alert ($ (document.body). Height ()); The height of the body of the Browser's current window document
Alert ($ (document.body). outerheight (true)); Browser Current Window document body total height includes border padding margin
Alert ($ (window). Width ()); Browser Current window viewable area width
Alert (document). Width ()); Browser Current Window Document object width
Alert ($ (document.body). Width ()); Browser Current Window document body width
Alert ($ (document.body). outerwidth (true)); Browser Current Window document body total width includes border padding margin
Javascript, jquery get browser and screen various height widths