window.onresize = function() { document.body.height = window.innerHeight;}window.onresize(); // called to initially set the height.