title: jQuery scroll event inside an iframe
body: <p>I've already noticed that there are many posts dealing with this; but I can't get out of them anything useful.</p>
  
  <p>I have a html page (which I cannot touch) containing an iframe; this iframe contains a html page I made (which actually contains all the stuff of the page). 
  What I'd like to do is to detect when the user scrolls to the bottom of the page (i.e., to the bottom of the iframe). So I try the following: </p>
  
  <pre><code>$(document).ready(function() {
      $(window).scroll(function() {
          //...
      });
   });
  </code></pre>
  
  <p>inside the iframe. But it did not produce any result when I scroll the page, as if no event occurred. 
  I've read many things out there but I've not understood how the whole thing works (for example: document refers to the iframe's container, or to the iframe itself?).</p>
  
  <p>Could anyone explain how to deal with an iframe with jquery? In this case I can only operate inside the iframe itself (if this is something remarkable).</p>
  
  <p>Thanks to anyone who can help!</p>