title: Load iframe content with Javascript (or jQuery)
body: <p>I need read a external code that comes through a file that is in the same folder of the html file. The problem is that the HTML isn't running in a server, so I can't use the jQuery load() and other solutions. So I think in load the code via an iframe like this:</p>
  
  <pre><code>&lt;iframe id="iframe" src="script1.html"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>The text in the file is something like this:</p>
  
  <pre><code>One paragraph. Some words
  Other paragraph, and more words...
  </code></pre>
  
  <p>I need get the sentences and throw in a array, but I even can't get the text via jQuery. I'm trying do this:</p>
  
  <pre><code>var text = $("#iframe").val();
  </code></pre>
  
  <p>But it does nothing, so I tried this inserting the html tags in the file:</p>
  
  <pre><code>$('#iframe').contents().find("html").html();
  </code></pre>
  
  <p>And nothing again. So, how to do it?</p>