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