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
<!DOCTYPE HTML><Scriptsrc= "Jquery-1.5.1.min.js"type= "Text/javascript"></Script><HTML> <Head> <title>Aaa</title> </Head> <Body><H1>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAA</H1> <P>Welcome to AAA</P><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1><H1>Aaa</H1> </Body></HTML><Scripttype= "Text/javascript">alert (document.body.clientWidth); alert (document.body.clientHeight); alert ( document.body.offsetWidth); alert ( document.body.offsetHeight); alert (document.body.scrollWidth); alert (document.body.scrollHeight); alert ( DOCUMENT.BODY.SCROLLTOP); alert (document.body.scrollLeft); alert (window.screentop); alert (window.screenleft); alert (window.screen.height); alert (window.screen.width); alert (window.screen.availHeight); alert ( Window.screen.availWidth);//alert (document). Height ());//alert (document). width ());</Script>
JS Get browser size