|
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>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.