得到 window.open 新页面中的数据

1.htm 页面 

单击按  '钮后'  调用window.open方法,开启新窗口  2.htm


想实现----------------------

在2.htm页面单击按钮 将相应的数据返回到 1.htm页面上的 textarea 或者 input文件区域中。

function addlx() {
//window.opener.document.getElementById('djzclx').value = id;
   window.opener.document.getElementById('tt').value = document.getElementById('kk').value;
window.close();
//parent.$("#djzclx").val(id);
//window.parent.document.getElementById('djzclx').value="id";
//window.location = "sjsRegisterTypeController.do?goAddlx&id="+id;
}
posted @ 2016-11-15 20:48  caozengling  阅读(2109)  评论(0编辑  收藏  举报