function getDocumentHeight() {
if ($.browser.msie) {
var $temp = $("<div>")
.css("position", "absolute")
.css("left", "-10000px")
.append($("body").html());
$("body").append($temp);
var h = $temp.height();
$temp.remove();
return h;
}
return $("body").height();
}
Showing posts with label body height. Show all posts
Showing posts with label body height. Show all posts
Thursday, December 13, 2012
Finding real body height using jQuery
Subscribe to:
Comments (Atom)