window size and viewport size jquery code example Example: get the size of the browser jquery $(window).height(); $(window).width();