| Suppose we have the following code in test.html.
<frameset col"50%,*">
<frame src="page1.htm">
<frame src="page2.htm" name="right">
</frameset>
Then Then in page1.htm:
<script language="JavaScript"><!--
parent.right.functionName();
//--></script>
Then in page2.htm:
<script language="JavaScript"><!--
function functionName() {
alert('Hello world');
}
//--></script>
|