title: How can I access the functions wrapped in the $(document).ready(function(){}) of an iframe?
body: <p>So I have an iframe that has some functions wrapped in a $(document).ready(function(){}) like this.</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          function foo(){
              // do some stuff
          }
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I know that I can access the DOM with something like $('iframe').contents().find('something'), but can I access the foo() function from above?</p>