Obtener la altura total de la página JavaScript

var _docHeight = (document.height !== undefined) ? document.height : document.body.offsetHeight;
Lakshay.me