<script language="javascript">
window.onload=function show()
{
var id=document.location.search.split("=")[1];
var title=id+"_title";
var introduction=id+"_introduction";
var logourl=id+"_logourl";
alert(window.opener.document.getElementById(title).innerHTML);
document.getElementById("xuanshouname").innerHTML=window.opener.document.getElementById(title).innerHTML; 
document.getElementById("introduction").innerHTML=window.opener.document.getElementById(introduction).innerHTML; 
document.getElementById("imgUrl").src=window.opener.document.getElementById(logourl).innerHTML; 
}
</script><div class="neirong"> <p><b><label name="xuanshouName" id="xuanshouName"></label></b> 
</p>
<p><label name="introduction" id="introduction"></label></p></div>
现在的问题是   window.opener.document.getElementById(title).innerHTML 这个值是可以取得的,但是在IE下label的值会显示出来,但是FF下就是不出,请问各位是啥原因,谢谢

解决方案 »

  1.   

    window.opener.document.getElementById(title)对应的元素是什么,给个例子看看...
      

  2.   

    alert(window.opener.document.getElementById(title))对应的元素是<div id="182690_title">张三</div>                                                                                                             弹出来的数据为"张三",现在是IE会现出来张三,另外一个label位置显示的是 张三是个教育家 现在就是火狐不出来效果,是不是有些代码FF不兼容?