Hi,
I want to write a script that (run from a file on the local HD) reads
another local html-file into a variable, then make some changes to it, and
then output the result in a way that makes it simple for the user to save
it again. And all of this should run in any current browser, not just IE.
I managed to access the code of the current document by
code = document.documentElement.innerHTML
But when I open another window with the file I want to edit, all I get is
<head></head><body></body>
For the output I tried to do document.write in an output window, but I
can't save the code I generate there, all I get is the sourcecode of my
script page (the opener of the page I try to save). Any hints?
Oh, just in case that matters, I'm using Galeon on Linux.
I hope someone out there can help me.
Thanks, Christian