Jquery gets the browser height, width, and scroll bar height
-
alert($(window).height()); //Height of window viewing area at browser time -
alert($(document).height()); //The height of the lower window document in the browser -
alert($(document.body).height()); //Height of the lower window document body in the browser -
alert($(document.body).outerHeight( true )); //The total height of the lower window document body in the browser includes the border padding margin -
alert($(window).width()); //Browser current window viewing area width -
alert($(document).width()); //Browser current window document object width -
alert($(document.body).width()); //Height of the lower window document body in the browser -
alert($(document.body).outerWidth( true )); //The total width of the lower window document body in the browser includes the border padding margin -
alert($(document).scrollTop()); //Get the vertical height from the scroll bar to the top -
alert($(document).scrollLeft()); //Gets the vertical width of the scroll bar to the left