Event at the end of the document
<p>I don't understand why this doesn't work. Explanation will be appreciated.</p>

<pre><code> var scrollTop = $(window).scrollTop();
    var height = $(window).height();
    if (scrollTop === height ) {
        alert("end!");
    }
</code></pre>

<p><a href="http://jsfiddle.net/Zasxe/" rel="nofollow">http://jsfiddle.net/Zasxe/</a></p>
