1const screenWidth = window.screen.width;
2const screenHeight = window.screen.height;
1// Size of browser viewport.
2$(window).height();
3$(window).width();
4
5// Size of HTML document (same as pageHeight/pageWidth in screenshot).
6$(document).height();
7$(document).width();