demo.htm<iframe id="message" src="in.htm"></iframe>
<input type="button" onclick="top.frames.message.addImg()" value="addImg">in.htm<body>
<br>
<table><tr><td id="td1" style="width:200">table</td></tr></table>
<script>
function addImg()
{
var img = document.createElement("img");
img.id="txt1";
img.src="csdn.gif";
img.align="left";
td1.appendChild(img); //加到相应该的位置.
}
</script>
<input type="button" onclick="top.frames.message.addImg()" value="addImg">in.htm<body>
<br>
<table><tr><td id="td1" style="width:200">table</td></tr></table>
<script>
function addImg()
{
var img = document.createElement("img");
img.id="txt1";
img.src="csdn.gif";
img.align="left";
td1.appendChild(img); //加到相应该的位置.
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货