Stop page scroll after the page reaches certain point
<p>How can scroll be prevented after scrollTop reaches certain value say 150.</p>

<pre><code>$(window).scroll(function() {   
    if($(window).scrollTop() &gt;=50)) {
       return false;    // basically don't scroll       
    }
});
</code></pre>
