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

Q1153 How can I write HTML-text into another frame from JavaScript - but from the page that contains the frameset definition?

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

Use something like:

<html>
<head>
<title>Writing to frames</title>
<script language="JavaScript"><!--
function myUpdate() {
    parent.textframe.document.open()
    parent.textframe.document.write("Some text")
    parent.textframe.document.close();
}
//--></script>
</head>

<frameset rows="75%,*" onLoad="myUpdate()">
<frame src="" name="textframe">
<frame src="" name="otherframe">
</frameset>
</html>

©2018 Martin Webb