title: Javascript to get entire contents of frame
body: <p>I want to have a script rewrite a simple text-file opened up as the source of a frame -- one that lacks any html.  I tried <code>frames[1].document.innerHTML</code> but without success.  I even tried <code>.outerHTML</code> and got nothing.  Can I either (a) get from the frame the entire contents of the frame to manipulate using the script and then <code>.write()</code> back the result to the frame?   Or (b) add <code>&lt;html&gt;</code> and <code>&lt;div&gt;</code> tags, wrapping the document so I can get the inner html and then manipulate that?  Any help appreciated.</p>