<!-------index.html------->
<html>
<meta http-equiv="content-type" content="html/text;charset=gb2312">
<frameset cols="50%,*">
<frame name="left" src="left.html">
<frame name="right" src="right.html">
</frameset>
</html>
<!--------end-------------><!--------left.html------->
<html><body>
<input type=button value="viewdiv" onclick="alert(parent.right.div1.innerHTML);">
</body></html>
<!--------end-------------><!--------right.html------>
<html><body>
<div id=div1>
<span>hello</span><br>
i am a boy!<br>
</div>
</body></html>
<!--------end------------->
<html>
<meta http-equiv="content-type" content="html/text;charset=gb2312">
<frameset cols="50%,*">
<frame name="left" src="left.html">
<frame name="right" src="right.html">
</frameset>
</html>
<!--------end-------------><!--------left.html------->
<html><body>
<input type=button value="viewdiv" onclick="alert(parent.right.div1.innerHTML);">
</body></html>
<!--------end-------------><!--------right.html------>
<html><body>
<div id=div1>
<span>hello</span><br>
i am a boy!<br>
</div>
</body></html>
<!--------end------------->
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货