Chinaunix

标题: 请教怎样实现open的窗口和原窗口的交互 [打印本页]

作者: ultralqxq    时间: 2006-06-30 10:54
标题: 请教怎样实现open的窗口和原窗口的交互
过程:
当我用 var newWin=window.open("top.html","_blank","");打开top.html页面后。再在top.html里填写了一些资料。然后按“确定”自动关闭top.html窗口并将填的资料返回到原窗口的textarea中。。
请问这要怎么实现????
作者: kakasi    时间: 2006-06-30 11:09
window.opener.setTextAreaXX();
window.close()
作者: jakieyoung    时间: 2006-06-30 13:02
用opener表示打开本窗口的窗口,也就是父窗口




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2