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>