Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Frame | Q412 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.