a very serous question you should know what is the relationship between a and b, i mean pop-up will include 2 situation ,one is window .open,another is show or hide ,so if b is another window ,you should use opener ,if just show another div ,you absolutely use current widow,so that is document.getElementByName(),i think that is ok,good luck!
{
opener.document.form1.TextBox1.value= imagename;
self.close();
}
{
opener.TextBox1.value= imagename;
self.close();
}
<frame src="left.aspx" name="leftFrame" noresize marginwidth="0" marginheight="0">
<frame src="A.aspx" name="mainframe" noresize >
</frameset>我后来用这样的语句就不能执行了
window.opener.document不是对象。
用XMLHttpRequest进行异步获取呢!