I have a page as follows:
<HTML>
<FRAMESET ROWS="20%, 80%">
<FRAME SRC="editor.htm l" NAME="editor">
<FRAME SRC="testfile.h tml" NAME="reader">
</FRAMESET>
</HTML>
editor.html contains the following code:
code = document.docume ntElement.inner HTML
which gives me the HTML-code of editor.html as expected.
Now I want to read the HTML-code of testfile.html instead. But
code = parent.reader.d ocument.documen tElement.innerH TML
just returns
<head></head><body></body>
with Mozilla, and IE gives an error.
Can somebody explain why this happens, and how I can solve it?
Since the first case works on all browsers I tried, I was hoping to get
a browser-independant method to read the sourcecode of another file.
By the way, all files are local.
Thanks
<HTML>
<FRAMESET ROWS="20%, 80%">
<FRAME SRC="editor.htm l" NAME="editor">
<FRAME SRC="testfile.h tml" NAME="reader">
</FRAMESET>
</HTML>
editor.html contains the following code:
code = document.docume ntElement.inner HTML
which gives me the HTML-code of editor.html as expected.
Now I want to read the HTML-code of testfile.html instead. But
code = parent.reader.d ocument.documen tElement.innerH TML
just returns
<head></head><body></body>
with Mozilla, and IE gives an error.
Can somebody explain why this happens, and how I can solve it?
Since the first case works on all browsers I tried, I was hoping to get
a browser-independant method to read the sourcecode of another file.
By the way, all files are local.
Thanks
Comment