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:
<iframe id="iframe" src="script1.html"></iframe>
The text in the file is something like this:
One paragraph. Some words
Other paragraph, and more words...
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:
var text = $("#iframe").val();
But it does nothing, so I tried this inserting the html tags in the file:
$('#iframe').contents().find("html").html();
And nothing again. So, how to do it?