I have an html on my harddrive that includes another local file (plain text) through an iframe. I'd like to also parse that plain text file using javascript, and put a summary a little further down on the page.
Here's my current code:
Expand|Select|Wrap|Line Numbers
- var myFrame = document.getElementById("theframe");
- var myDoc = myFrame.document;
- var myContent = myDoc.firstChild;
I only care if this works on firefox, since I'm planning to just use it myself. There shouldn't be any access violation, since both documents come from the same location. Is there anything I can do to get this to work?