get the size of the browser jquery

JavaScript
$(window).height();
$(window).width();
Source

Also in JavaScript: