Evo kao inspiracija malo dirty koda:
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<style>
</style>
<script>
function getDocHeight() {
var D = document;
return Math.max(
D.body.scrollHeight, D.documentElement.scrollHeight...