title: How to prevent alert() flood?
body: <p>This script alerts once when user all scrolled down to bottom.</p>
  
  <pre><code>$(window).scroll(function() {
      if ($(window).scrollTop() == $(document).height() - $(window).height()) {
          alert();
      }
  });
  </code></pre>
  
  <p>It works almost on all browsers, However, Internet Explorer alerts 3-4 times. My question is, what is the correct way to prevent that flood ? </p>