私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.htm
top_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
ですか?