/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// found at http://james.padolsey.com/javascript/get-document-height-cross-browser/ function getDocHeight() { var D = document; return Math.max( Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight) ); }