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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM