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

时间:2022-04-22 21:15:08

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;
}