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