You could use a tiny piece of code in one of the JavaScript plugins

// Size of HTML document (same as pageHeight/pageWidth in screenshot).
$(document).height();
$(document).width();