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

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

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

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

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>

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.