Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q412 How can I write HTML-text into another frame - rather like a status window?

You are here: irt.org | FAQ | JavaScript | Frame | Q412 [ previous next ]

Here is a simple example. First the frameset definition:

<frameset cols="50%,*">
<frame src="write.htm">
<frame src="dummy.htm" name="otherframe">
</frameset>

Then in write.htm:

<script language="JavaScript"><!--
function count(x) {
    parent.otherframe.document.write(x + '<br>');
}

parent.otherframe.document.open();
for (var i=0;i<100;i++)
    count(i);
parent.otherframe.document.close();
//--></script>

Feedback on 'Q412 How can I write HTML-text into another frame - rather like a status window?'

©2018 Martin Webb