Get Document Height With Angularjs 1.2.4 (not The Body)
I'm trying since 2 hours to find the entire document with AngularJS. I found a lot of question about the height of the body, but nothing for the entire document. With jQuery, I use
Solution 1:
From http://james.padolsey.com/javascript/get-document-height-cross-browser/
function getDocHeight() {
return Math.max(
document.body.scrollHeight, document.documentElement.scrollHeight,
document.body.offsetHeight, document.documentElement.offsetHeight,
document.body.clientHeight, document.documentElement.clientHeight
);
}
Post a Comment for "Get Document Height With Angularjs 1.2.4 (not The Body)"