私main_page.htmは
<frameset rows="30,*" frameborder=0 border=0>
<frame name="top_frame" src="top.htm">
<frame name="bottom_frame" src="bottom.htm">
</frameset>
bottom.htm のコードは次のとおりです。
<div id="BottomFrameTest">Hi There!</div>
top.htmtop_frameにある上記のテキストを変更するにはどうすればよいですか
top.htm のコードは次のとおりです。
<script>
function ChnageDivText()
{
$("#BottomFrameTest").html("Hello World. This text is changed");
}
</script>
<body>
<input type="button" value="Change Text" onclick="ChnageDivText()" />
</body>
上記のコードは明らかに機能しません。bottom_frameからと通信するにはどうすればよいtop_frameですか?